powerdlz23 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pto/TikTok-Downloader-Bot/Dockerfile +6 -0
- package/pto/TikTok-Downloader-Bot/LICENSE +21 -0
- package/pto/TikTok-Downloader-Bot/Procfile +1 -0
- package/pto/TikTok-Downloader-Bot/README.md +59 -0
- package/pto/TikTok-Downloader-Bot/app.json +40 -0
- package/pto/TikTok-Downloader-Bot/docker-compose.yml +11 -0
- package/pto/TikTok-Downloader-Bot/main.py +131 -0
- package/pto/TikTok-Downloader-Bot/progress_bar.py +63 -0
- package/pto/TikTok-Downloader-Bot/requirements.txt +6 -0
- package/pto/TikTok-Downloader-Bot/runtime.txt +1 -0
- package/pto/yaamp/README.md +70 -0
- package/pto/yaamp/blocknotify/blocknotify.cpp +90 -0
- package/pto/yaamp/config/blake.conf +16 -0
- package/pto/yaamp/config/fresh.conf +16 -0
- package/pto/yaamp/config/groestl.conf +16 -0
- package/pto/yaamp/config/keccak.conf +16 -0
- package/pto/yaamp/config/lyra2.conf +16 -0
- package/pto/yaamp/config/neo.conf +16 -0
- package/pto/yaamp/config/nist5.conf +16 -0
- package/pto/yaamp/config/quark.conf +16 -0
- package/pto/yaamp/config/qubit.conf +16 -0
- package/pto/yaamp/config/run.sh +12 -0
- package/pto/yaamp/config/scrypt.conf +16 -0
- package/pto/yaamp/config/scryptn.conf +16 -0
- package/pto/yaamp/config/sha.conf +17 -0
- package/pto/yaamp/config/skein.conf +16 -0
- package/pto/yaamp/config/x11.conf +16 -0
- package/pto/yaamp/config/x13.conf +16 -0
- package/pto/yaamp/config/x14.conf +16 -0
- package/pto/yaamp/config/x15.conf +16 -0
- package/pto/yaamp/rc.local +30 -0
- package/pto/yaamp/stratum/algos/Lyra2.c +208 -0
- package/pto/yaamp/stratum/algos/Lyra2.h +50 -0
- package/pto/yaamp/stratum/algos/Lyra2RE.c +70 -0
- package/pto/yaamp/stratum/algos/Lyra2RE.h +16 -0
- package/pto/yaamp/stratum/algos/Sponge.c +745 -0
- package/pto/yaamp/stratum/algos/Sponge.h +115 -0
- package/pto/yaamp/stratum/algos/blake.c +16 -0
- package/pto/yaamp/stratum/algos/blake.h +16 -0
- package/pto/yaamp/stratum/algos/fresh.c +44 -0
- package/pto/yaamp/stratum/algos/fresh.h +16 -0
- package/pto/yaamp/stratum/algos/groestl.c +41 -0
- package/pto/yaamp/stratum/algos/groestl.h +18 -0
- package/pto/yaamp/stratum/algos/jha.c +135 -0
- package/pto/yaamp/stratum/algos/jha.h +16 -0
- package/pto/yaamp/stratum/algos/keccak.c +32 -0
- package/pto/yaamp/stratum/algos/keccak.h +16 -0
- package/pto/yaamp/stratum/algos/makefile +32 -0
- package/pto/yaamp/stratum/algos/neoscrypt.c +962 -0
- package/pto/yaamp/stratum/algos/neoscrypt.h +33 -0
- package/pto/yaamp/stratum/algos/nist5.c +47 -0
- package/pto/yaamp/stratum/algos/nist5.h +16 -0
- package/pto/yaamp/stratum/algos/quark.c +210 -0
- package/pto/yaamp/stratum/algos/quark.h +16 -0
- package/pto/yaamp/stratum/algos/qubit.c +44 -0
- package/pto/yaamp/stratum/algos/qubit.h +17 -0
- package/pto/yaamp/stratum/algos/scrypt.c +681 -0
- package/pto/yaamp/stratum/algos/scryptn.c +257 -0
- package/pto/yaamp/stratum/algos/scryptn.h +16 -0
- package/pto/yaamp/stratum/algos/sha256.c +287 -0
- package/pto/yaamp/stratum/algos/sha256.h +440 -0
- package/pto/yaamp/stratum/algos/skein.c +27 -0
- package/pto/yaamp/stratum/algos/skein.h +16 -0
- package/pto/yaamp/stratum/algos/whirlpoolx.c +44 -0
- package/pto/yaamp/stratum/algos/whirlpoolx.h +16 -0
- package/pto/yaamp/stratum/algos/x11.c +85 -0
- package/pto/yaamp/stratum/algos/x11.h +16 -0
- package/pto/yaamp/stratum/algos/x13.c +98 -0
- package/pto/yaamp/stratum/algos/x13.h +16 -0
- package/pto/yaamp/stratum/algos/x14.c +102 -0
- package/pto/yaamp/stratum/algos/x14.h +16 -0
- package/pto/yaamp/stratum/algos/x15.c +106 -0
- package/pto/yaamp/stratum/algos/x15.h +16 -0
- package/pto/yaamp/stratum/algos/zr5.c +104 -0
- package/pto/yaamp/stratum/algos/zr5.h +17 -0
- package/pto/yaamp/stratum/base58.cpp +99 -0
- package/pto/yaamp/stratum/client.cpp +432 -0
- package/pto/yaamp/stratum/client.h +142 -0
- package/pto/yaamp/stratum/client_core.cpp +312 -0
- package/pto/yaamp/stratum/client_difficulty.cpp +105 -0
- package/pto/yaamp/stratum/client_submit.cpp +304 -0
- package/pto/yaamp/stratum/coinbase.cpp +139 -0
- package/pto/yaamp/stratum/coind.cpp +188 -0
- package/pto/yaamp/stratum/coind.h +97 -0
- package/pto/yaamp/stratum/coind_aux.cpp +107 -0
- package/pto/yaamp/stratum/coind_submit.cpp +113 -0
- package/pto/yaamp/stratum/coind_template.cpp +309 -0
- package/pto/yaamp/stratum/db.cpp +418 -0
- package/pto/yaamp/stratum/db.h +32 -0
- package/pto/yaamp/stratum/iniparser/AUTHORS +6 -0
- package/pto/yaamp/stratum/iniparser/INSTALL +15 -0
- package/pto/yaamp/stratum/iniparser/LICENSE +21 -0
- package/pto/yaamp/stratum/iniparser/Makefile +72 -0
- package/pto/yaamp/stratum/iniparser/README +12 -0
- package/pto/yaamp/stratum/iniparser/doc/Makefile +16 -0
- package/pto/yaamp/stratum/iniparser/doc/iniparser.dox +81 -0
- package/pto/yaamp/stratum/iniparser/doc/iniparser.main +207 -0
- package/pto/yaamp/stratum/iniparser/html/doxygen.css +545 -0
- package/pto/yaamp/stratum/iniparser/html/doxygen.png +0 -0
- package/pto/yaamp/stratum/iniparser/html/globals_func.html +64 -0
- package/pto/yaamp/stratum/iniparser/html/index.html +101 -0
- package/pto/yaamp/stratum/iniparser/html/iniparser_8h.html +583 -0
- package/pto/yaamp/stratum/iniparser/html/iniparser_8main.html +19 -0
- package/pto/yaamp/stratum/iniparser/html/tab_b.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tab_l.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tab_r.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tabs.css +105 -0
- package/pto/yaamp/stratum/iniparser/src/dictionary.c +402 -0
- package/pto/yaamp/stratum/iniparser/src/dictionary.h +185 -0
- package/pto/yaamp/stratum/iniparser/src/iniparser.c +904 -0
- package/pto/yaamp/stratum/iniparser/src/iniparser.h +315 -0
- package/pto/yaamp/stratum/iniparser/test/Makefile +27 -0
- package/pto/yaamp/stratum/iniparser/test/iniexample.c +100 -0
- package/pto/yaamp/stratum/iniparser/test/parse.c +24 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-errors.ini +9 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-genhuge.py +12 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-ofkey.ini +66 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-ofval.ini +56 -0
- package/pto/yaamp/stratum/iniparser/test/twisted.ini +131 -0
- package/pto/yaamp/stratum/job.cpp +324 -0
- package/pto/yaamp/stratum/job.h +120 -0
- package/pto/yaamp/stratum/job_core.cpp +132 -0
- package/pto/yaamp/stratum/job_send.cpp +162 -0
- package/pto/yaamp/stratum/json.cpp +980 -0
- package/pto/yaamp/stratum/json.h +271 -0
- package/pto/yaamp/stratum/list.cpp +165 -0
- package/pto/yaamp/stratum/makefile +53 -0
- package/pto/yaamp/stratum/merkle.cpp +86 -0
- package/pto/yaamp/stratum/object.cpp +73 -0
- package/pto/yaamp/stratum/object.h +25 -0
- package/pto/yaamp/stratum/remote.cpp +301 -0
- package/pto/yaamp/stratum/remote.h +96 -0
- package/pto/yaamp/stratum/remote_template.cpp +138 -0
- package/pto/yaamp/stratum/rpc.cpp +270 -0
- package/pto/yaamp/stratum/rpc.h +32 -0
- package/pto/yaamp/stratum/sha3/aes_helper.c +392 -0
- package/pto/yaamp/stratum/sha3/hamsi_helper.c +39648 -0
- package/pto/yaamp/stratum/sha3/libhash.a +0 -0
- package/pto/yaamp/stratum/sha3/makefile +34 -0
- package/pto/yaamp/stratum/sha3/md_helper.c +347 -0
- package/pto/yaamp/stratum/sha3/sph_blake.c +1127 -0
- package/pto/yaamp/stratum/sha3/sph_blake.h +327 -0
- package/pto/yaamp/stratum/sha3/sph_bmw.c +965 -0
- package/pto/yaamp/stratum/sha3/sph_bmw.h +328 -0
- package/pto/yaamp/stratum/sha3/sph_cubehash.c +723 -0
- package/pto/yaamp/stratum/sha3/sph_cubehash.h +292 -0
- package/pto/yaamp/stratum/sha3/sph_echo.c +1031 -0
- package/pto/yaamp/stratum/sha3/sph_echo.h +320 -0
- package/pto/yaamp/stratum/sha3/sph_fugue.c +1208 -0
- package/pto/yaamp/stratum/sha3/sph_fugue.h +81 -0
- package/pto/yaamp/stratum/sha3/sph_groestl.c +3119 -0
- package/pto/yaamp/stratum/sha3/sph_groestl.h +329 -0
- package/pto/yaamp/stratum/sha3/sph_hamsi.c +867 -0
- package/pto/yaamp/stratum/sha3/sph_hamsi.h +322 -0
- package/pto/yaamp/stratum/sha3/sph_hefty1.c +378 -0
- package/pto/yaamp/stratum/sha3/sph_hefty1.h +66 -0
- package/pto/yaamp/stratum/sha3/sph_jh.c +1116 -0
- package/pto/yaamp/stratum/sha3/sph_jh.h +298 -0
- package/pto/yaamp/stratum/sha3/sph_keccak.c +1824 -0
- package/pto/yaamp/stratum/sha3/sph_keccak.h +293 -0
- package/pto/yaamp/stratum/sha3/sph_luffa.c +1426 -0
- package/pto/yaamp/stratum/sha3/sph_luffa.h +296 -0
- package/pto/yaamp/stratum/sha3/sph_shabal.c +806 -0
- package/pto/yaamp/stratum/sha3/sph_shabal.h +344 -0
- package/pto/yaamp/stratum/sha3/sph_shavite.c +1764 -0
- package/pto/yaamp/stratum/sha3/sph_shavite.h +314 -0
- package/pto/yaamp/stratum/sha3/sph_simd.c +1799 -0
- package/pto/yaamp/stratum/sha3/sph_simd.h +309 -0
- package/pto/yaamp/stratum/sha3/sph_skein.c +1254 -0
- package/pto/yaamp/stratum/sha3/sph_skein.h +298 -0
- package/pto/yaamp/stratum/sha3/sph_types.h +1976 -0
- package/pto/yaamp/stratum/sha3/sph_whirlpool.c +3480 -0
- package/pto/yaamp/stratum/sha3/sph_whirlpool.h +209 -0
- package/pto/yaamp/stratum/share.cpp +279 -0
- package/pto/yaamp/stratum/share.h +106 -0
- package/pto/yaamp/stratum/socket.cpp +159 -0
- package/pto/yaamp/stratum/socket.h +28 -0
- package/pto/yaamp/stratum/stratum.cpp +321 -0
- package/pto/yaamp/stratum/stratum.h +141 -0
- package/pto/yaamp/stratum/user.cpp +104 -0
- package/pto/yaamp/stratum/util.cpp +666 -0
- package/pto/yaamp/stratum/util.h +127 -0
- package/pto/yaamp/web/.project +22 -0
- package/pto/yaamp/web/blocks.sh +10 -0
- package/pto/yaamp/web/extensions/jqplot/MIT-LICENSE.txt +21 -0
- package/pto/yaamp/web/extensions/jqplot/README.txt +77 -0
- package/pto/yaamp/web/extensions/jqplot/changes.txt +458 -0
- package/pto/yaamp/web/extensions/jqplot/copyright.txt +56 -0
- package/pto/yaamp/web/extensions/jqplot/excanvas.js +1438 -0
- package/pto/yaamp/web/extensions/jqplot/excanvas.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/gpl-2.0.txt +280 -0
- package/pto/yaamp/web/extensions/jqplot/jqPlotCssStyling.txt +53 -0
- package/pto/yaamp/web/extensions/jqplot/jqPlotOptions.txt +391 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.css +259 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.js +11411 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.min.css +1 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/optionsTutorial.txt +243 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.BezierCurveRenderer.js +314 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.BezierCurveRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.barRenderer.js +801 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.barRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.blockRenderer.js +235 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.blockRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.bubbleRenderer.js +759 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.bubbleRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js +203 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisTickRenderer.js +253 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasOverlay.js +1021 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasOverlay.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasTextRenderer.js +449 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasTextRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.categoryAxisRenderer.js +679 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.categoryAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ciParser.js +116 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ciParser.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.cursor.js +1108 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.cursor.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dateAxisRenderer.js +741 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dateAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.donutRenderer.js +805 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.donutRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dragable.js +225 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dragable.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.enhancedLegendRenderer.js +305 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.enhancedLegendRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.funnelRenderer.js +943 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.funnelRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.highlighter.js +465 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.highlighter.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.json2.js +475 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.json2.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.logAxisRenderer.js +534 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.logAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoAxisRenderer.js +611 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoRenderer.js +437 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.meterGaugeRenderer.js +1029 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.meterGaugeRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mobile.js +45 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mobile.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ohlcRenderer.js +373 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ohlcRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pieRenderer.js +904 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pieRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pointLabels.js +377 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pointLabels.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidAxisRenderer.js +728 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidGridRenderer.js +429 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidGridRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidRenderer.js +514 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.trendline.js +223 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.trendline.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/usage.txt +126 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-1.10.2.min.js +6 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-1.8.3-dev.js +9472 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-ui-1.10.3.custom.min.js +7 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-ui-1.9.1.custom.min.js +6 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/animated-overlay.gif +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery-ui.css +1178 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.accordion.css +38 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.all.css +12 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.autocomplete.css +16 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.base.css +25 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.button.css +114 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.core.css +93 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.datepicker.css +178 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.dialog.css +69 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.menu.css +79 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.progressbar.css +28 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.resizable.css +78 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.selectable.css +15 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.slider.css +73 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.spinner.css +65 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.tabs.css +52 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.theme.css +406 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.tooltip.css +19 -0
- package/pto/yaamp/web/favicon.ico +0 -0
- package/pto/yaamp/web/framework-1.0.8/.htaccess +1 -0
- package/pto/yaamp/web/framework-1.0.8/YiiBase.php +684 -0
- package/pto/yaamp/web/framework-1.0.8/base/CApplication.php +718 -0
- package/pto/yaamp/web/framework-1.0.8/base/CApplicationComponent.php +56 -0
- package/pto/yaamp/web/framework-1.0.8/base/CBehavior.php +87 -0
- package/pto/yaamp/web/framework-1.0.8/base/CComponent.php +599 -0
- package/pto/yaamp/web/framework-1.0.8/base/CErrorEvent.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/base/CErrorHandler.php +336 -0
- package/pto/yaamp/web/framework-1.0.8/base/CException.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/base/CExceptionEvent.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/base/CHttpException.php +40 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModel.php +634 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModelBehavior.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModelEvent.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModule.php +465 -0
- package/pto/yaamp/web/framework-1.0.8/base/CSecurityManager.php +245 -0
- package/pto/yaamp/web/framework-1.0.8/base/CStatePersister.php +102 -0
- package/pto/yaamp/web/framework-1.0.8/base/interfaces.php +534 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CApcCache.php +108 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CCache.php +312 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CDbCache.php +250 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CDummyCache.php +145 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CEAcceleratorCache.php +104 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CFileCache.php +217 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CMemCache.php +272 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CXCache.php +97 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CZendDataCache.php +98 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CCacheDependency.php +62 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CChainedCacheDependency.php +68 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CDbCacheDependency.php +87 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CDirectoryCacheDependency.php +134 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CExpressionDependency.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CFileCacheDependency.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CGlobalStateCacheDependency.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CAttributeCollection.php +187 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CConfiguration.php +121 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CList.php +341 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CListIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CMap.php +319 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CMapIterator.php +93 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CQueue.php +168 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CQueueIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CStack.php +169 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CStackIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CTypedList.php +52 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbCommand.php +326 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbConnection.php +645 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbDataReader.php +221 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbException.php +21 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbTransaction.php +108 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveFinder.php +1359 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveRecord.php +2212 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveRecordBehavior.php +96 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbColumnSchema.php +143 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbCommandBuilder.php +664 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbCriteria.php +166 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbExpression.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbSchema.php +203 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbTableSchema.php +76 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlColumnSchema.php +55 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlCommandBuilder.php +304 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlPdoAdapter.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlSchema.php +310 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlTableSchema.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlColumnSchema.php +46 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlSchema.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlTableSchema.php +26 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciColumnSchema.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciCommandBuilder.php +122 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciSchema.php +276 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciTableSchema.php +26 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlColumnSchema.php +56 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlSchema.php +282 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlTableSchema.php +25 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteColumnSchema.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteCommandBuilder.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteSchema.php +129 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CChoiceFormat.php +77 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CDateFormatter.php +507 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CDbMessageSource.php +114 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CGettextMessageSource.php +111 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CLocale.php +243 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CMessageSource.php +157 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CNumberFormatter.php +280 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CPhpMessageSource.php +96 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextFile.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextMoFile.php +269 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextPoFile.php +89 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CDbLogRoute.php +168 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CEmailLogRoute.php +122 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CFileLogRoute.php +162 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogFilter.php +103 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogRoute.php +107 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogRouter.php +107 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogger.php +237 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CProfileLogRoute.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CWebLogRoute.php +57 -0
- package/pto/yaamp/web/framework-1.0.8/messages/bg/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/config.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/messages/de/yii.php +221 -0
- package/pto/yaamp/web/framework-1.0.8/messages/el/yii.php +222 -0
- package/pto/yaamp/web/framework-1.0.8/messages/es/yii.php +231 -0
- package/pto/yaamp/web/framework-1.0.8/messages/fr/yii.php +210 -0
- package/pto/yaamp/web/framework-1.0.8/messages/he/yii.php +206 -0
- package/pto/yaamp/web/framework-1.0.8/messages/hu/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/id/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/it/yii.php +208 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ja/yii.php +230 -0
- package/pto/yaamp/web/framework-1.0.8/messages/nl/yii.php +206 -0
- package/pto/yaamp/web/framework-1.0.8/messages/no/yii.php +222 -0
- package/pto/yaamp/web/framework-1.0.8/messages/pl/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/pt/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ro/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ru/yii.php +214 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sr_sr/yii.php +205 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sr_yu/yii.php +205 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sv/yii.php +226 -0
- package/pto/yaamp/web/framework-1.0.8/messages/uk/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/vi/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/zh_cn/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/zh_tw/yii.php +207 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CDateTimeParser.php +230 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CFileHelper.php +228 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CMarkdownParser.php +179 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CPropertyValue.php +158 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CTimestamp.php +715 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CVarDumper.php +142 -0
- package/pto/yaamp/web/framework-1.0.8/utils/mimeTypes.php +178 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CCaptchaValidator.php +72 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CCompareValidator.php +151 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CDefaultValueValidator.php +51 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CEmailValidator.php +80 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CExistValidator.php +88 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CFileValidator.php +159 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CFilterValidator.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CInlineValidator.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CNumberValidator.php +86 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRangeValidator.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRegularExpressionValidator.php +51 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRequiredValidator.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CStringValidator.php +78 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CTypeValidator.php +99 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CUniqueValidator.php +106 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CUrlValidator.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CValidator.php +194 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/README.html +89 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/adodb/LICENSE.txt +182 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/cldr/LICENSE.txt +33 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/gettext/LICENSE.txt +22 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/json/LICENSE.txt +22 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/markdown/LICENSE.txt +36 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/markdown/markdown.php +2623 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error400.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-summary-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error400.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error500.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error503.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/exception.php +75 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error.php +25 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error400.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error403.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error404.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error500.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error503.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/exception.php +62 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/log-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/log.php +29 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-callstack-firebug.php +17 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-callstack.php +29 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-summary-firebug.php +20 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-callstack.php +28 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/web/CAssetManager.php +227 -0
- package/pto/yaamp/web/framework-1.0.8/web/CBaseController.php +283 -0
- package/pto/yaamp/web/framework-1.0.8/web/CCacheHttpSession.php +111 -0
- package/pto/yaamp/web/framework-1.0.8/web/CClientScript.php +562 -0
- package/pto/yaamp/web/framework-1.0.8/web/CController.php +1072 -0
- package/pto/yaamp/web/framework-1.0.8/web/CDbHttpSession.php +203 -0
- package/pto/yaamp/web/framework-1.0.8/web/CExtController.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/web/CFormModel.php +113 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpCookie.php +63 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpRequest.php +763 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpSession.php +522 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpSessionIterator.php +92 -0
- package/pto/yaamp/web/framework-1.0.8/web/COutputEvent.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/web/CPagination.php +161 -0
- package/pto/yaamp/web/framework-1.0.8/web/CSort.php +292 -0
- package/pto/yaamp/web/framework-1.0.8/web/CTheme.php +124 -0
- package/pto/yaamp/web/framework-1.0.8/web/CThemeManager.php +127 -0
- package/pto/yaamp/web/framework-1.0.8/web/CUploadedFile.php +210 -0
- package/pto/yaamp/web/framework-1.0.8/web/CUrlManager.php +613 -0
- package/pto/yaamp/web/framework-1.0.8/web/CWebApplication.php +608 -0
- package/pto/yaamp/web/framework-1.0.8/web/CWebModule.php +187 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CAction.php +58 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CInlineAction.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CViewAction.php +165 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAccessControlFilter.php +295 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthAssignment.php +102 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthItem.php +269 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthManager.php +157 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CBaseUserIdentity.php +116 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CDbAuthManager.php +584 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CPhpAuthManager.php +535 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CUserIdentity.php +79 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CWebUser.php +583 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/schema.sql +42 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CFilter.php +64 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CFilterChain.php +131 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CInlineFilter.php +61 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CGoogleApi.php +72 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CHtml.php +1801 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CJSON.php +698 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CJavaScript.php +128 -0
- package/pto/yaamp/web/framework-1.0.8/web/renderers/CPradoViewRenderer.php +245 -0
- package/pto/yaamp/web/framework-1.0.8/web/renderers/CViewRenderer.php +93 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWebService.php +271 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWebServiceAction.php +130 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWsdlGenerator.php +373 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CAutoComplete.php +285 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CClipWidget.php +55 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CContentDecorator.php +83 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CFilterWidget.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CFlexWidget.php +116 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CHtmlPurifier.php +64 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CInputWidget.php +80 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMarkdown.php +119 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMaskedTextField.php +106 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMultiFileUpload.php +115 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/COutputCache.php +336 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/COutputProcessor.php +77 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CStarRating.php +207 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTabView.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTextHighlighter.php +127 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTreeView.php +232 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CWidget.php +202 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/CCaptcha.php +132 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/CCaptchaAction.php +233 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/Duality.ttf +0 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CBasePager.php +129 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CLinkPager.php +194 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CListPager.php +85 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/pager.css +68 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/views/flexWidget.php +98 -0
- package/pto/yaamp/web/framework-1.0.8/yii.php +29 -0
- package/pto/yaamp/web/images/41.png +0 -0
- package/pto/yaamp/web/images/amc.jpg +0 -0
- package/pto/yaamp/web/images/base/action_refresh_blue.gif +0 -0
- package/pto/yaamp/web/images/base/action_save.gif +0 -0
- package/pto/yaamp/web/images/base/delete.png +0 -0
- package/pto/yaamp/web/images/base/dot.png +0 -0
- package/pto/yaamp/web/images/base/download.png +0 -0
- package/pto/yaamp/web/images/base/edit.png +0 -0
- package/pto/yaamp/web/images/base/enroll.png +0 -0
- package/pto/yaamp/web/images/base/favorite.png +0 -0
- package/pto/yaamp/web/images/base/folder_new.png +0 -0
- package/pto/yaamp/web/images/base/new.png +0 -0
- package/pto/yaamp/web/images/base/newcomment.png +0 -0
- package/pto/yaamp/web/images/base/newfile.png +0 -0
- package/pto/yaamp/web/images/base/newfolder.png +0 -0
- package/pto/yaamp/web/images/base/newuser.png +0 -0
- package/pto/yaamp/web/images/base/pause.png +0 -0
- package/pto/yaamp/web/images/base/play.png +0 -0
- package/pto/yaamp/web/images/base/tools.png +0 -0
- package/pto/yaamp/web/images/base/top.png +0 -0
- package/pto/yaamp/web/images/base/top_header.png +0 -0
- package/pto/yaamp/web/images/base/top_header_selected.png +0 -0
- package/pto/yaamp/web/images/base/video_play.png +0 -0
- package/pto/yaamp/web/images/beta_corner_banner.png +0 -0
- package/pto/yaamp/web/images/beta_corner_banner2.png +0 -0
- package/pto/yaamp/web/images/btc.png +0 -0
- package/pto/yaamp/web/images/coin-154.png +0 -0
- package/pto/yaamp/web/images/coin-22.png +0 -0
- package/pto/yaamp/web/images/coin-251.png +0 -0
- package/pto/yaamp/web/images/coin-30.png +0 -0
- package/pto/yaamp/web/images/coin-316.png +0 -0
- package/pto/yaamp/web/images/coin-33.png +0 -0
- package/pto/yaamp/web/images/coin-6.png +0 -0
- package/pto/yaamp/web/images/coin-834.png +0 -0
- package/pto/yaamp/web/images/gears.png +0 -0
- package/pto/yaamp/web/images/minus2-78.png +0 -0
- package/pto/yaamp/web/images/next.png +0 -0
- package/pto/yaamp/web/images/pause.png +0 -0
- package/pto/yaamp/web/images/play.png +0 -0
- package/pto/yaamp/web/images/plus2-78.png +0 -0
- package/pto/yaamp/web/images/sign-in-with-twitter-gray.png +0 -0
- package/pto/yaamp/web/images/sign-in-with-twitter-link.png +0 -0
- package/pto/yaamp/web/images/start.png +0 -0
- package/pto/yaamp/web/images/t_mini-a.png +0 -0
- package/pto/yaamp/web/images/tweet.jpg +0 -0
- package/pto/yaamp/web/images/twitter.jpg +0 -0
- package/pto/yaamp/web/images/ui/16x16_2leftarrow.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_2rightarrow.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_bottom.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_chat.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_delete.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_edit.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_email.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_fileclose.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_kcontrol.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_kuser.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_ledgreen.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_link.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_misc.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_package_edutainment.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_window_list.png +0 -0
- package/pto/yaamp/web/images/ui/22x22_bottom.png +0 -0
- package/pto/yaamp/web/images/ui/24x24_link.png +0 -0
- package/pto/yaamp/web/images/ui/32x32_link.png +0 -0
- package/pto/yaamp/web/images/ui/48x48_link.png +0 -0
- package/pto/yaamp/web/images/ui/arrow-down.gif +0 -0
- package/pto/yaamp/web/images/ui/arrow-right.gif +0 -0
- package/pto/yaamp/web/images/ui/asc.gif +0 -0
- package/pto/yaamp/web/images/ui/away.gif +0 -0
- package/pto/yaamp/web/images/ui/bg.gif +0 -0
- package/pto/yaamp/web/images/ui/control_play_blue.png +0 -0
- package/pto/yaamp/web/images/ui/desc.gif +0 -0
- package/pto/yaamp/web/images/ui/down_arrow.png +0 -0
- package/pto/yaamp/web/images/ui/empty.png +0 -0
- package/pto/yaamp/web/images/ui/expand_down.png +0 -0
- package/pto/yaamp/web/images/ui/expand_up.png +0 -0
- package/pto/yaamp/web/images/ui/green-check.png +0 -0
- package/pto/yaamp/web/images/ui/icon-check.gif +0 -0
- package/pto/yaamp/web/images/ui/install-flash.jpg +0 -0
- package/pto/yaamp/web/images/ui/linkout.png +0 -0
- package/pto/yaamp/web/images/ui/loading.gif +0 -0
- package/pto/yaamp/web/images/ui/loading_white.gif +0 -0
- package/pto/yaamp/web/images/ui/menudot.png +0 -0
- package/pto/yaamp/web/images/ui/menuo_bg.gif +0 -0
- package/pto/yaamp/web/images/ui/offline.gif +0 -0
- package/pto/yaamp/web/images/ui/online.gif +0 -0
- package/pto/yaamp/web/images/ui/shade.gif +0 -0
- package/pto/yaamp/web/images/ui/shadeactive.gif +0 -0
- package/pto/yaamp/web/images/ui/showactivity.png +0 -0
- package/pto/yaamp/web/images/ui/showcourse.png +0 -0
- package/pto/yaamp/web/images/ui/showdetail.png +0 -0
- package/pto/yaamp/web/images/ui/showfile.png +0 -0
- package/pto/yaamp/web/images/ui/showfolder.png +0 -0
- package/pto/yaamp/web/images/ui/showgraph.png +0 -0
- package/pto/yaamp/web/images/ui/showlink.png +0 -0
- package/pto/yaamp/web/images/ui/showmedium.png +0 -0
- package/pto/yaamp/web/images/ui/showsmall.png +0 -0
- package/pto/yaamp/web/images/ui/tintblue.gif +0 -0
- package/pto/yaamp/web/images/ui/tintbluedark.gif +0 -0
- package/pto/yaamp/web/images/vn_embed.png +0 -0
- package/pto/yaamp/web/index.php +30 -0
- package/pto/yaamp/web/loop2.sh +9 -0
- package/pto/yaamp/web/main.sh +9 -0
- package/pto/yaamp/web/robots.txt +2 -0
- package/pto/yaamp/web/run.php +25 -0
- package/pto/yaamp/web/serverconfig.php +26 -0
- package/pto/yaamp/web/yaamp/components/CUFHtml.php +136 -0
- package/pto/yaamp/web/yaamp/components/UniForm.php +25 -0
- package/pto/yaamp/web/yaamp/components/UserIdentity.php +25 -0
- package/pto/yaamp/web/yaamp/config.php +68 -0
- package/pto/yaamp/web/yaamp/core/backend/backend.php +17 -0
- package/pto/yaamp/web/yaamp/core/backend/blocks.php +243 -0
- package/pto/yaamp/web/yaamp/core/backend/clear.php +47 -0
- package/pto/yaamp/web/yaamp/core/backend/coins.php +245 -0
- package/pto/yaamp/web/yaamp/core/backend/markets.php +505 -0
- package/pto/yaamp/web/yaamp/core/backend/payment.php +153 -0
- package/pto/yaamp/web/yaamp/core/backend/rawcoins.php +144 -0
- package/pto/yaamp/web/yaamp/core/backend/renting.php +271 -0
- package/pto/yaamp/web/yaamp/core/backend/sell.php +126 -0
- package/pto/yaamp/web/yaamp/core/backend/services.php +210 -0
- package/pto/yaamp/web/yaamp/core/backend/stats.php +347 -0
- package/pto/yaamp/web/yaamp/core/backend/system.php +253 -0
- package/pto/yaamp/web/yaamp/core/backend/users.php +95 -0
- package/pto/yaamp/web/yaamp/core/common/Shortcuts.php +77 -0
- package/pto/yaamp/web/yaamp/core/common/common.php +10 -0
- package/pto/yaamp/web/yaamp/core/common/libUtil.php +305 -0
- package/pto/yaamp/web/yaamp/core/common/libdbo.php +91 -0
- package/pto/yaamp/web/yaamp/core/common/system.php +135 -0
- package/pto/yaamp/web/yaamp/core/common/util.php +317 -0
- package/pto/yaamp/web/yaamp/core/common/utilConversion.php +296 -0
- package/pto/yaamp/web/yaamp/core/core.php +11 -0
- package/pto/yaamp/web/yaamp/core/exchange/bittrex.php +28 -0
- package/pto/yaamp/web/yaamp/core/exchange/bleutrade.php +28 -0
- package/pto/yaamp/web/yaamp/core/exchange/ccexapi.php +106 -0
- package/pto/yaamp/web/yaamp/core/exchange/cryptsy.php +63 -0
- package/pto/yaamp/web/yaamp/core/exchange/exchange.php +12 -0
- package/pto/yaamp/web/yaamp/core/exchange/jubi.php +20 -0
- package/pto/yaamp/web/yaamp/core/exchange/poloniex.php +242 -0
- package/pto/yaamp/web/yaamp/core/exchange/yobit.php +77 -0
- package/pto/yaamp/web/yaamp/core/exchange2/CExchange.php +198 -0
- package/pto/yaamp/web/yaamp/core/exchange2/CExchangeCoin.php +84 -0
- package/pto/yaamp/web/yaamp/core/exchange2/exchange.php +7 -0
- package/pto/yaamp/web/yaamp/core/functions/curloauth.php +50 -0
- package/pto/yaamp/web/yaamp/core/functions/easybitcoin.php +220 -0
- package/pto/yaamp/web/yaamp/core/functions/functions.php +11 -0
- package/pto/yaamp/web/yaamp/core/functions/memcache.php +85 -0
- package/pto/yaamp/web/yaamp/core/functions/url.php +79 -0
- package/pto/yaamp/web/yaamp/core/functions/yaamp.php +365 -0
- package/pto/yaamp/web/yaamp/core/trading/bittrex_trading.php +221 -0
- package/pto/yaamp/web/yaamp/core/trading/bleutrade_trading.php +218 -0
- package/pto/yaamp/web/yaamp/core/trading/c-cex_trading.php +192 -0
- package/pto/yaamp/web/yaamp/core/trading/cryptsy_trading.php +231 -0
- package/pto/yaamp/web/yaamp/core/trading/poloniex_trading.php +179 -0
- package/pto/yaamp/web/yaamp/core/trading/trading.php +11 -0
- package/pto/yaamp/web/yaamp/core/trading/yobit_trading.php +205 -0
- package/pto/yaamp/web/yaamp/include.php +11 -0
- package/pto/yaamp/web/yaamp/models/db_accountsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_algosModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_balancesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_balanceuserModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_blocksModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_coinsModel.php +46 -0
- package/pto/yaamp/web/yaamp/models/db_connectionsModel.php +35 -0
- package/pto/yaamp/web/yaamp/models/db_earningsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_exchangeModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashrateModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashrenterModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashstatsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashuserModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_jobsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_jobsubmitsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_marketsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_miningModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_nicehashModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_ordersModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_payoutsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_rawcoinsModel.php +36 -0
- package/pto/yaamp/web/yaamp/models/db_rentersModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_rentertxsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_serversModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_servicesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_sharesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_shares_vipModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_statsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_stratumsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_withdrawsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_workersModel.php +33 -0
- package/pto/yaamp/web/yaamp/modules/api/ApiController.php +301 -0
- package/pto/yaamp/web/yaamp/modules/coin/CoinController.php +54 -0
- package/pto/yaamp/web/yaamp/modules/coin/_form.php +75 -0
- package/pto/yaamp/web/yaamp/modules/coin/index.php +134 -0
- package/pto/yaamp/web/yaamp/modules/common/CommonController.php +55 -0
- package/pto/yaamp/web/yaamp/modules/common/maintenance.php +25 -0
- package/pto/yaamp/web/yaamp/modules/common/yaamp.php +23 -0
- package/pto/yaamp/web/yaamp/modules/explorer/ExplorerController.php +56 -0
- package/pto/yaamp/web/yaamp/modules/explorer/block.php +122 -0
- package/pto/yaamp/web/yaamp/modules/explorer/coin.php +63 -0
- package/pto/yaamp/web/yaamp/modules/explorer/index.php +67 -0
- package/pto/yaamp/web/yaamp/modules/explorer/tx.php +73 -0
- package/pto/yaamp/web/yaamp/modules/explorer/util.php +146 -0
- package/pto/yaamp/web/yaamp/modules/market/MarketController.php +86 -0
- package/pto/yaamp/web/yaamp/modules/market/update.php +23 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/NicehashController.php +55 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/index.php +37 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/index_results.php +78 -0
- package/pto/yaamp/web/yaamp/modules/renting/RentingController.php +469 -0
- package/pto/yaamp/web/yaamp/modules/renting/admin.php +148 -0
- package/pto/yaamp/web/yaamp/modules/renting/all_orders_results.php +95 -0
- package/pto/yaamp/web/yaamp/modules/renting/balance_results.php +115 -0
- package/pto/yaamp/web/yaamp/modules/renting/create.php +52 -0
- package/pto/yaamp/web/yaamp/modules/renting/graph_job_results.php +74 -0
- package/pto/yaamp/web/yaamp/modules/renting/graph_price_results.php +54 -0
- package/pto/yaamp/web/yaamp/modules/renting/index.php +318 -0
- package/pto/yaamp/web/yaamp/modules/renting/login.php +239 -0
- package/pto/yaamp/web/yaamp/modules/renting/orders_results.php +130 -0
- package/pto/yaamp/web/yaamp/modules/renting/settings.php +156 -0
- package/pto/yaamp/web/yaamp/modules/renting/status_results.php +103 -0
- package/pto/yaamp/web/yaamp/modules/renting/tx.php +74 -0
- package/pto/yaamp/web/yaamp/modules/site/SiteController.php +772 -0
- package/pto/yaamp/web/yaamp/modules/site/about.php +59 -0
- package/pto/yaamp/web/yaamp/modules/site/admin.php +90 -0
- package/pto/yaamp/web/yaamp/modules/site/admin_results.php +171 -0
- package/pto/yaamp/web/yaamp/modules/site/api.php +136 -0
- package/pto/yaamp/web/yaamp/modules/site/backup.php +33 -0
- package/pto/yaamp/web/yaamp/modules/site/block.php +46 -0
- package/pto/yaamp/web/yaamp/modules/site/block_results.php +85 -0
- package/pto/yaamp/web/yaamp/modules/site/coin.php +145 -0
- package/pto/yaamp/web/yaamp/modules/site/coin_form.php +229 -0
- package/pto/yaamp/web/yaamp/modules/site/coin_results.php +242 -0
- package/pto/yaamp/web/yaamp/modules/site/common.php +231 -0
- package/pto/yaamp/web/yaamp/modules/site/common_results.php +576 -0
- package/pto/yaamp/web/yaamp/modules/site/connections.php +57 -0
- package/pto/yaamp/web/yaamp/modules/site/connections_results.php +48 -0
- package/pto/yaamp/web/yaamp/modules/site/diff.php +36 -0
- package/pto/yaamp/web/yaamp/modules/site/earning.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/earning_results.php +74 -0
- package/pto/yaamp/web/yaamp/modules/site/emptymarkets.php +34 -0
- package/pto/yaamp/web/yaamp/modules/site/eval.php +22 -0
- package/pto/yaamp/web/yaamp/modules/site/exchange.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/exchange_results.php +183 -0
- package/pto/yaamp/web/yaamp/modules/site/index.php +154 -0
- package/pto/yaamp/web/yaamp/modules/site/memcached.php +56 -0
- package/pto/yaamp/web/yaamp/modules/site/miners.php +88 -0
- package/pto/yaamp/web/yaamp/modules/site/mining.php +235 -0
- package/pto/yaamp/web/yaamp/modules/site/monsters.php +129 -0
- package/pto/yaamp/web/yaamp/modules/site/multialgo.php +84 -0
- package/pto/yaamp/web/yaamp/modules/site/payments.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/payments_results.php +56 -0
- package/pto/yaamp/web/yaamp/modules/site/results/current_results.php +158 -0
- package/pto/yaamp/web/yaamp/modules/site/results/found_results.php +94 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_assets_results.php +58 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_earnings_results.php +47 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_hashrate_results.php +68 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_negative_results.php +36 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_price_results.php +68 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_profit_results.php +25 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_user_results.php +81 -0
- package/pto/yaamp/web/yaamp/modules/site/results/history_results.php +156 -0
- package/pto/yaamp/web/yaamp/modules/site/results/miners_results.php +126 -0
- package/pto/yaamp/web/yaamp/modules/site/results/mining_results.php +216 -0
- package/pto/yaamp/web/yaamp/modules/site/results/user_earning_results.php +92 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_graphs_results.php +33 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_miners_results.php +117 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_results.php +263 -0
- package/pto/yaamp/web/yaamp/modules/site/terms.php +392 -0
- package/pto/yaamp/web/yaamp/modules/site/tx.php +64 -0
- package/pto/yaamp/web/yaamp/modules/site/user.php +80 -0
- package/pto/yaamp/web/yaamp/modules/site/user_results.php +136 -0
- package/pto/yaamp/web/yaamp/modules/site/version.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/version_results.php +48 -0
- package/pto/yaamp/web/yaamp/modules/site/wallet.php +390 -0
- package/pto/yaamp/web/yaamp/modules/site/worker.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/worker_results.php +55 -0
- package/pto/yaamp/web/yaamp/modules/stats/StatsController.php +65 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_1.php +20 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_2.php +19 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_3.php +20 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_4.php +34 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_5.php +33 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_6.php +40 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_7.php +34 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_8.php +33 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_9.php +44 -0
- package/pto/yaamp/web/yaamp/modules/stats/index.php +502 -0
- package/pto/yaamp/web/yaamp/modules/thread/CronjobController.php +196 -0
- package/pto/yaamp/web/yaamp/modules/trading/TradingController.php +59 -0
- package/pto/yaamp/web/yaamp/modules/trading/index.php +270 -0
- package/pto/yaamp/web/yaamp/modules/trading/mining_results.php +245 -0
- package/pto/yaamp/web/yaamp/ui/app.php +8 -0
- package/pto/yaamp/web/yaamp/ui/css/editor.css +34 -0
- package/pto/yaamp/web/yaamp/ui/css/indicator.gif +0 -0
- package/pto/yaamp/web/yaamp/ui/css/jquery-ui-fixes.css +26 -0
- package/pto/yaamp/web/yaamp/ui/css/list.css +78 -0
- package/pto/yaamp/web/yaamp/ui/css/main.css +225 -0
- package/pto/yaamp/web/yaamp/ui/css/news.css +82 -0
- package/pto/yaamp/web/yaamp/ui/css/objectmenu.css +27 -0
- package/pto/yaamp/web/yaamp/ui/css/poll.css +194 -0
- package/pto/yaamp/web/yaamp/ui/css/table.css +124 -0
- package/pto/yaamp/web/yaamp/ui/css/tags.css +97 -0
- package/pto/yaamp/web/yaamp/ui/css/uni-form-generic.css +25 -0
- package/pto/yaamp/web/yaamp/ui/css/uni-form.css +94 -0
- package/pto/yaamp/web/yaamp/ui/js/auto_refresh.js +33 -0
- package/pto/yaamp/web/yaamp/ui/js/cookies.js +45 -0
- package/pto/yaamp/web/yaamp/ui/js/datetime.js +126 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.bgiframe.js +44 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.dialogextend.js +589 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.tablesorter.js +1031 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.yii.js +45 -0
- package/pto/yaamp/web/yaamp/ui/js/swfobject.js +780 -0
- package/pto/yaamp/web/yaamp/ui/js/texteditor.js +54 -0
- package/pto/yaamp/web/yaamp/ui/js/uni-form.jquery.js +38 -0
- package/pto/yaamp/web/yaamp/ui/js/util.js +108 -0
- package/pto/yaamp/web/yaamp/ui/lib/lib.php +4 -0
- package/pto/yaamp/web/yaamp/ui/lib/libview.php +59 -0
- package/pto/yaamp/web/yaamp/ui/lib/pageheader.php +26 -0
- package/pto/yaamp/web/yaamp/ui/main.php +131 -0
- package/pto/yaamp/web/yaamp/ui/misc.php +41 -0
- package/pto/yaamp/yaamp.sql +3098 -0
|
@@ -0,0 +1,1072 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* CController class file.
|
|
4
|
+
*
|
|
5
|
+
* @author Qiang Xue <qiang.xue@gmail.com>
|
|
6
|
+
* @link http://www.yiiframework.com/
|
|
7
|
+
* @copyright Copyright © 2008-2009 Yii Software LLC
|
|
8
|
+
* @license http://www.yiiframework.com/license/
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* CController manages a set of actions which deal with the corresponding user requests.
|
|
14
|
+
*
|
|
15
|
+
* Through the actions, CController coordinates the data flow between models and views.
|
|
16
|
+
*
|
|
17
|
+
* When a user requests an action 'XYZ', CController will do one of the following:
|
|
18
|
+
* 1. Method-based action: call method 'actionXYZ' if it exists;
|
|
19
|
+
* 2. Class-based action: create an instance of class 'XYZ' if the class is found in the action class map
|
|
20
|
+
* (specified via {@link actions()}, and execute the action;
|
|
21
|
+
* 3. Call {@link missingAction()}, which by default will raise a 404 HTTP exception.
|
|
22
|
+
*
|
|
23
|
+
* If the user does not specify an action, CController will run the action specified by
|
|
24
|
+
* {@link defaultAction}, instead.
|
|
25
|
+
*
|
|
26
|
+
* CController may be configured to execute filters before and after running actions.
|
|
27
|
+
* Filters preprocess/postprocess the user request/response and may quit executing actions
|
|
28
|
+
* if needed. They are executed in the order they are specified. If during the execution,
|
|
29
|
+
* any of the filters returns true, the rest filters and the action will no longer get executed.
|
|
30
|
+
*
|
|
31
|
+
* Filters can be individual objects, or methods defined in the controller class.
|
|
32
|
+
* They are specified by overriding {@link filters()} method. The following is an example
|
|
33
|
+
* of the filter specification:
|
|
34
|
+
* <pre>
|
|
35
|
+
* array(
|
|
36
|
+
* 'accessControl - login',
|
|
37
|
+
* 'ajaxOnly + search',
|
|
38
|
+
* array(
|
|
39
|
+
* 'COutputCache + list',
|
|
40
|
+
* 'duration'=>300,
|
|
41
|
+
* ),
|
|
42
|
+
* )
|
|
43
|
+
* </pre>
|
|
44
|
+
* The above example declares three filters: accessControl, ajaxOnly, COutputCache. The first two
|
|
45
|
+
* are method-based filters (defined in CController), which refer to filtering methods in the controller class;
|
|
46
|
+
* while the last refers to a object-based filter whose class is 'system.web.widgets.COutputCache' and
|
|
47
|
+
* the 'duration' property is initialized as 300 (s).
|
|
48
|
+
*
|
|
49
|
+
* For method-based filters, a method named 'filterXYZ($filterChain)' in the controller class
|
|
50
|
+
* will be executed, where 'XYZ' stands for the filter name as specified in {@link filters()}.
|
|
51
|
+
* Note, inside the filter method, you must call <code>$filterChain->run()</code> if the action should
|
|
52
|
+
* be executed. Otherwise, the filtering process would stop at this filter.
|
|
53
|
+
*
|
|
54
|
+
* Filters can be specified so that they are executed only when running certain actions.
|
|
55
|
+
* For method-based filters, this is done by using '+' and '-' operators in the filter specification.
|
|
56
|
+
* The '+' operator means the filter runs only when the specified actions are requested;
|
|
57
|
+
* while the '-' operator means the filter runs only when the requested action is not among those actions.
|
|
58
|
+
* For object-based filters, the '+' and '-' operators are following the class name.
|
|
59
|
+
*
|
|
60
|
+
* @author Qiang Xue <qiang.xue@gmail.com>
|
|
61
|
+
* @version $Id: CController.php 1158 2009-06-22 16:51:20Z qiang.xue $
|
|
62
|
+
* @package system.web
|
|
63
|
+
* @since 1.0
|
|
64
|
+
*/
|
|
65
|
+
class CController extends CBaseController
|
|
66
|
+
{
|
|
67
|
+
/**
|
|
68
|
+
* Name of the hidden field storing persistent page states.
|
|
69
|
+
*/
|
|
70
|
+
const STATE_INPUT_NAME='YII_PAGE_STATE';
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @var mixed the name of the layout to be applied to this controller's views.
|
|
74
|
+
* Defaults to null, meaning the {@link CWebApplication::layout application layout}
|
|
75
|
+
* is used. If it is false, no layout will be applied.
|
|
76
|
+
* Since version 1.0.3, the {@link CWebModule::layout module layout} will be used
|
|
77
|
+
* if the controller belongs to a module and this layout property is null.
|
|
78
|
+
*/
|
|
79
|
+
public $layout;
|
|
80
|
+
/**
|
|
81
|
+
* @var string the name of the default action. Defaults to 'index'.
|
|
82
|
+
*/
|
|
83
|
+
public $defaultAction='index';
|
|
84
|
+
|
|
85
|
+
private $_id;
|
|
86
|
+
private $_action;
|
|
87
|
+
private $_pageTitle;
|
|
88
|
+
private $_cachingStack;
|
|
89
|
+
private $_clips;
|
|
90
|
+
private $_dynamicOutput;
|
|
91
|
+
private $_pageStates;
|
|
92
|
+
private $_module;
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @param string id of this controller
|
|
97
|
+
* @param CWebModule the module that this controller belongs to. This parameter
|
|
98
|
+
* has been available since version 1.0.3.
|
|
99
|
+
*/
|
|
100
|
+
public function __construct($id,$module=null)
|
|
101
|
+
{
|
|
102
|
+
$this->_id=$id;
|
|
103
|
+
$this->_module=$module;
|
|
104
|
+
$this->attachBehaviors($this->behaviors());
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Initializes the controller.
|
|
109
|
+
* This method is called by the application before the controller starts to execute.
|
|
110
|
+
* You may override this method to perform the needed initialization for the controller.
|
|
111
|
+
* @since 1.0.1
|
|
112
|
+
*/
|
|
113
|
+
public function init()
|
|
114
|
+
{
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns the filter configurations.
|
|
119
|
+
*
|
|
120
|
+
* By overriding this method, child classes can specify filters to be applied to actions.
|
|
121
|
+
*
|
|
122
|
+
* This method returns an array of filter specifications. Each array element specify a single filter.
|
|
123
|
+
*
|
|
124
|
+
* For a method-based filter (called inline filter), it is specified as 'FilterName[ +|- Action1, Action2, ...]',
|
|
125
|
+
* where the '+' ('-') operators describe which actions should be (should not be) applied with the filter.
|
|
126
|
+
*
|
|
127
|
+
* For a class-based filter, it is specified as an array like the following:
|
|
128
|
+
* <pre>
|
|
129
|
+
* array(
|
|
130
|
+
* 'FilterClass[ +|- Action1, Action2, ...]',
|
|
131
|
+
* 'name1'=>'value1',
|
|
132
|
+
* 'name2'=>'value2',
|
|
133
|
+
* ...
|
|
134
|
+
* )
|
|
135
|
+
* </pre>
|
|
136
|
+
* where the name-value pairs will be used to initialize the properties of the filter.
|
|
137
|
+
*
|
|
138
|
+
* Note, in order to inherit filters defined in the parent class, a child class needs to
|
|
139
|
+
* merge the parent filters with child filters using functions like array_merge().
|
|
140
|
+
*
|
|
141
|
+
* @return array a list of filter configurations.
|
|
142
|
+
* @see CFilter
|
|
143
|
+
*/
|
|
144
|
+
public function filters()
|
|
145
|
+
{
|
|
146
|
+
return array();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Returns a list of external action classes.
|
|
151
|
+
* Array keys are action IDs, and array values are the corresponding
|
|
152
|
+
* action class in dot syntax (e.g. 'edit'=>'application.controllers.article.EditArticle')
|
|
153
|
+
* or arrays representing the configuration of the actions, such as the following,
|
|
154
|
+
* <pre>
|
|
155
|
+
* return array(
|
|
156
|
+
* 'action1'=>'path.to.Action1Class',
|
|
157
|
+
* 'action2'=>array(
|
|
158
|
+
* 'class'=>'path.to.Action2Class',
|
|
159
|
+
* 'property1'=>'value1',
|
|
160
|
+
* 'property2'=>'value2',
|
|
161
|
+
* ),
|
|
162
|
+
* );
|
|
163
|
+
* </pre>
|
|
164
|
+
* Derived classes may override this method to declare external actions.
|
|
165
|
+
*
|
|
166
|
+
* Note, in order to inherit actions defined in the parent class, a child class needs to
|
|
167
|
+
* merge the parent actions with child actions using functions like array_merge().
|
|
168
|
+
*
|
|
169
|
+
* Since version 1.0.1, you may import actions from an action provider
|
|
170
|
+
* (such as a widget, see {@link CWidget::actions}), like the following:
|
|
171
|
+
* <pre>
|
|
172
|
+
* return array(
|
|
173
|
+
* ...other actions...
|
|
174
|
+
* // import actions declared in ProviderClass::actions()
|
|
175
|
+
* // the action IDs will be prefixed with 'pro.'
|
|
176
|
+
* 'pro.'=>'path.to.ProviderClass',
|
|
177
|
+
* // similar as above except that the imported actions are
|
|
178
|
+
* // configured with the specified initial property values
|
|
179
|
+
* 'pro2.'=>array(
|
|
180
|
+
* 'class'=>'path.to.ProviderClass',
|
|
181
|
+
* 'action1'=>array(
|
|
182
|
+
* 'property1'=>'value1',
|
|
183
|
+
* ),
|
|
184
|
+
* 'action2'=>array(
|
|
185
|
+
* 'property2'=>'value2',
|
|
186
|
+
* ),
|
|
187
|
+
* ),
|
|
188
|
+
* )
|
|
189
|
+
* </pre>
|
|
190
|
+
*
|
|
191
|
+
* In the above, we differentiate action providers from other action
|
|
192
|
+
* declarations by the array keys. For action providers, the array keys
|
|
193
|
+
* must contain a dot. As a result, an action ID 'pro2.action1' will
|
|
194
|
+
* be resolved as the 'action1' action declared in the 'ProviderClass'.
|
|
195
|
+
*
|
|
196
|
+
* @return array list of external action classes
|
|
197
|
+
* @see createAction
|
|
198
|
+
*/
|
|
199
|
+
public function actions()
|
|
200
|
+
{
|
|
201
|
+
return array();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Returns a list of behaviors that this controller should behave as.
|
|
206
|
+
* The return value should be an array of behavior configurations indexed by
|
|
207
|
+
* behavior names. Each behavior configuration can be either a string specifying
|
|
208
|
+
* the behavior class or an array of the following structure:
|
|
209
|
+
* <pre>
|
|
210
|
+
* 'behaviorName'=>array(
|
|
211
|
+
* 'class'=>'path.to.BehaviorClass',
|
|
212
|
+
* 'property1'=>'value1',
|
|
213
|
+
* 'property2'=>'value2',
|
|
214
|
+
* )
|
|
215
|
+
* </pre>
|
|
216
|
+
*
|
|
217
|
+
* Note, the behavior classes must implement {@link IBehavior} or extend from
|
|
218
|
+
* {@link CBehavior}. Behaviors declared in this method will be attached
|
|
219
|
+
* to the model when it is instantiated.
|
|
220
|
+
*
|
|
221
|
+
* For more details about behaviors, see {@link CComponent}.
|
|
222
|
+
* @return array the behavior configurations (behavior name=>behavior configuration)
|
|
223
|
+
* @since 1.0.6
|
|
224
|
+
*/
|
|
225
|
+
public function behaviors()
|
|
226
|
+
{
|
|
227
|
+
return array();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Returns the access rules for this controller.
|
|
232
|
+
* Override this method if you use the {@link filterAccessControl accessControl} filter.
|
|
233
|
+
* @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification.
|
|
234
|
+
*/
|
|
235
|
+
public function accessRules()
|
|
236
|
+
{
|
|
237
|
+
return array();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Runs the named action.
|
|
242
|
+
* Filters specified via {@link filters()} will be applied.
|
|
243
|
+
* @param string action ID
|
|
244
|
+
* @throws CHttpException if the action does not exist or the action name is not proper.
|
|
245
|
+
* @see filters
|
|
246
|
+
* @see createAction
|
|
247
|
+
* @see runAction
|
|
248
|
+
*/
|
|
249
|
+
public function run($actionID)
|
|
250
|
+
{
|
|
251
|
+
if(($action=$this->createAction($actionID))!==null)
|
|
252
|
+
{
|
|
253
|
+
if(($parent=$this->getModule())===null)
|
|
254
|
+
$parent=Yii::app();
|
|
255
|
+
if($parent->beforeControllerAction($this,$action))
|
|
256
|
+
{
|
|
257
|
+
$this->runActionWithFilters($action,$this->filters());
|
|
258
|
+
$parent->afterControllerAction($this,$action);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else
|
|
262
|
+
$this->missingAction($actionID);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Runs an action with the specified filters.
|
|
267
|
+
* A filter chain will be created based on the specified filters
|
|
268
|
+
* and the action will be executed then.
|
|
269
|
+
* @param CAction the action to be executed.
|
|
270
|
+
* @param array list of filters to be applied to the action.
|
|
271
|
+
* @see filters
|
|
272
|
+
* @see createAction
|
|
273
|
+
* @see runAction
|
|
274
|
+
*/
|
|
275
|
+
public function runActionWithFilters($action,$filters)
|
|
276
|
+
{
|
|
277
|
+
if(empty($filters))
|
|
278
|
+
$this->runAction($action);
|
|
279
|
+
else
|
|
280
|
+
{
|
|
281
|
+
$priorAction=$this->_action;
|
|
282
|
+
$this->_action=$action;
|
|
283
|
+
CFilterChain::create($this,$action,$filters)->run();
|
|
284
|
+
$this->_action=$priorAction;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Runs the action after passing through all filters.
|
|
290
|
+
* This method is invoked by {@link runActionWithFilters} after all possible filters have been executed
|
|
291
|
+
* and the action starts to run.
|
|
292
|
+
* @param CAction action to run
|
|
293
|
+
*/
|
|
294
|
+
public function runAction($action)
|
|
295
|
+
{
|
|
296
|
+
$priorAction=$this->_action;
|
|
297
|
+
$this->_action=$action;
|
|
298
|
+
if($this->beforeAction($action))
|
|
299
|
+
{
|
|
300
|
+
$action->run();
|
|
301
|
+
$this->afterAction($action);
|
|
302
|
+
}
|
|
303
|
+
$this->_action=$priorAction;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Postprocesses the output generated by {@link render()}.
|
|
308
|
+
* This method is invoked at the end of {@link render()} and {@link renderText()}.
|
|
309
|
+
* If there are registered client scripts, this method will insert them into the output
|
|
310
|
+
* at appropriate places. If there are dynamic contents, they will also be inserted.
|
|
311
|
+
* This method may also save the persistent page states in hidden fields of
|
|
312
|
+
* stateful forms in the page.
|
|
313
|
+
* @param string the output generated by the current action
|
|
314
|
+
* @return string the output that has been processed.
|
|
315
|
+
*/
|
|
316
|
+
public function processOutput($output)
|
|
317
|
+
{
|
|
318
|
+
Yii::app()->getClientScript()->render($output);
|
|
319
|
+
|
|
320
|
+
// if using page caching, we should delay dynamic output replacement
|
|
321
|
+
if($this->_dynamicOutput!==null && $this->isCachingStackEmpty())
|
|
322
|
+
$output=$this->processDynamicOutput($output);
|
|
323
|
+
|
|
324
|
+
if($this->_pageStates===null)
|
|
325
|
+
$this->_pageStates=$this->loadPageStates();
|
|
326
|
+
if(!empty($this->_pageStates))
|
|
327
|
+
$this->savePageStates($this->_pageStates,$output);
|
|
328
|
+
|
|
329
|
+
return $output;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Postprocesses the dynamic output.
|
|
334
|
+
* This method is internally used. Do not call this method directly.
|
|
335
|
+
* @param string output to be processed
|
|
336
|
+
* @return string the processed output
|
|
337
|
+
* @since 1.0.4
|
|
338
|
+
*/
|
|
339
|
+
public function processDynamicOutput($output)
|
|
340
|
+
{
|
|
341
|
+
if($this->_dynamicOutput)
|
|
342
|
+
{
|
|
343
|
+
$output=preg_replace_callback('/<###dynamic-(\d+)###>/',array($this,'replaceDynamicOutput'),$output);
|
|
344
|
+
$this->_dynamicOutput=null;
|
|
345
|
+
}
|
|
346
|
+
return $output;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Replaces the dynamic content placeholders with actual content.
|
|
351
|
+
* This is a callback function used internally.
|
|
352
|
+
* @param array matches
|
|
353
|
+
* @return string the replacement
|
|
354
|
+
* @see processOutput
|
|
355
|
+
*/
|
|
356
|
+
protected function replaceDynamicOutput($matches)
|
|
357
|
+
{
|
|
358
|
+
return isset($this->_dynamicOutput[$matches[1]]) ? $this->_dynamicOutput[$matches[1]] : $matches[0];
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Creates the action instance based on the action name.
|
|
363
|
+
* The action can be either an inline action or an object.
|
|
364
|
+
* The latter is created by looking up the action map specified in {@link actions}.
|
|
365
|
+
* @param string ID of the action. If empty, the {@link defaultAction default action} will be used.
|
|
366
|
+
* @return CAction the action instance, null if the action does not exist.
|
|
367
|
+
* @see actions
|
|
368
|
+
*/
|
|
369
|
+
public function createAction($actionID)
|
|
370
|
+
{
|
|
371
|
+
if($actionID==='')
|
|
372
|
+
$actionID=$this->defaultAction;
|
|
373
|
+
if(method_exists($this,'action'.$actionID) && strcasecmp($actionID,'s')) // we have actions method
|
|
374
|
+
return new CInlineAction($this,$actionID);
|
|
375
|
+
else
|
|
376
|
+
return $this->createActionFromMap($this->actions(),$actionID,$actionID);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Creates the action instance based on the action map.
|
|
381
|
+
* This method will check to see if the action ID appears in the given
|
|
382
|
+
* action map. If so, the corresponding configuration will be used to
|
|
383
|
+
* create the action instance.
|
|
384
|
+
* @param array the action map
|
|
385
|
+
* @param string the action ID that has its prefix stripped off
|
|
386
|
+
* @param string the originally requested action ID
|
|
387
|
+
* @param array the action configuration that should be applied on top of the configuration specified in the map
|
|
388
|
+
* @return CAction the action instance, null if the action does not exist.
|
|
389
|
+
* @since 1.0.1
|
|
390
|
+
*/
|
|
391
|
+
protected function createActionFromMap($actionMap,$actionID,$requestActionID,$config=array())
|
|
392
|
+
{
|
|
393
|
+
if(($pos=strpos($actionID,'.'))===false && isset($actionMap[$actionID]))
|
|
394
|
+
{
|
|
395
|
+
$baseConfig=is_array($actionMap[$actionID]) ? $actionMap[$actionID] : array('class'=>$actionMap[$actionID]);
|
|
396
|
+
return Yii::createComponent(empty($config)?$baseConfig:array_merge($baseConfig,$config),$this,$requestActionID);
|
|
397
|
+
}
|
|
398
|
+
else if($pos===false)
|
|
399
|
+
return null;
|
|
400
|
+
|
|
401
|
+
// the action is defined in a provider
|
|
402
|
+
$prefix=substr($actionID,0,$pos+1);
|
|
403
|
+
if(!isset($actionMap[$prefix]))
|
|
404
|
+
return null;
|
|
405
|
+
$actionID=(string)substr($actionID,$pos+1);
|
|
406
|
+
|
|
407
|
+
$provider=$actionMap[$prefix];
|
|
408
|
+
if(is_string($provider))
|
|
409
|
+
$providerType=$provider;
|
|
410
|
+
else if(is_array($provider) && isset($provider['class']))
|
|
411
|
+
{
|
|
412
|
+
$providerType=$provider['class'];
|
|
413
|
+
if(isset($provider[$actionID]))
|
|
414
|
+
{
|
|
415
|
+
if(is_string($provider[$actionID]))
|
|
416
|
+
$config=array_merge(array('class'=>$provider[$actionID]),$config);
|
|
417
|
+
else
|
|
418
|
+
$config=array_merge($provider[$actionID],$config);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
else
|
|
422
|
+
throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.'));
|
|
423
|
+
|
|
424
|
+
$class=Yii::import($providerType,true);
|
|
425
|
+
$map=call_user_func(array($class,'actions'));
|
|
426
|
+
|
|
427
|
+
return $this->createActionFromMap($map,$actionID,$requestActionID,$config);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Handles the request whose action is not recognized.
|
|
432
|
+
* This method is invoked when the controller cannot find the requested action.
|
|
433
|
+
* The default implementation simply throws an exception.
|
|
434
|
+
* @param string the missing action name
|
|
435
|
+
* @throws CHttpException whenever this method is invoked
|
|
436
|
+
*/
|
|
437
|
+
public function missingAction($actionID)
|
|
438
|
+
{
|
|
439
|
+
throw new CHttpException(404,Yii::t('yii','The system is unable to find the requested action "{action}".',
|
|
440
|
+
array('{action}'=>$actionID==''?$this->defaultAction:$actionID)));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @return CAction the action currently being executed, null if no active action.
|
|
445
|
+
*/
|
|
446
|
+
public function getAction()
|
|
447
|
+
{
|
|
448
|
+
return $this->_action;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @param CAction the action currently being executed.
|
|
453
|
+
*/
|
|
454
|
+
public function setAction($value)
|
|
455
|
+
{
|
|
456
|
+
$this->_action=$value;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @return string ID of the controller
|
|
461
|
+
*/
|
|
462
|
+
public function getId()
|
|
463
|
+
{
|
|
464
|
+
return $this->_id;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @return string the controller ID that is prefixed with the module ID (if any).
|
|
469
|
+
* @since 1.0.3
|
|
470
|
+
*/
|
|
471
|
+
public function getUniqueId()
|
|
472
|
+
{
|
|
473
|
+
return $this->_module ? $this->_module->getId().'/'.$this->_id : $this->_id;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @return CWebModule the module that this controller belongs to. It returns null
|
|
478
|
+
* if the controller does not belong to any module
|
|
479
|
+
* @since 1.0.3
|
|
480
|
+
*/
|
|
481
|
+
public function getModule()
|
|
482
|
+
{
|
|
483
|
+
return $this->_module;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Returns the directory containing view files for this controller.
|
|
488
|
+
* The default implementation returns 'protected/views/ControllerID'.
|
|
489
|
+
* Child classes may override this method to use customized view path.
|
|
490
|
+
* If the controller belongs to a module (since version 1.0.3), the default view path
|
|
491
|
+
* is the {@link CWebModule::getViewPath module view path} appended with the controller ID.
|
|
492
|
+
* @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'.
|
|
493
|
+
*/
|
|
494
|
+
public function getViewPath()
|
|
495
|
+
{
|
|
496
|
+
// if(($module=$this->getModule())===null)
|
|
497
|
+
// $module=Yii::app();
|
|
498
|
+
// return $module->getViewPath().'/'.$this->getId();
|
|
499
|
+
|
|
500
|
+
$app = Yii::app();
|
|
501
|
+
$path = preg_replace('|/([^/]*)$|', '', $app->classFile);
|
|
502
|
+
return $path;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Looks for the view file according to the given view name.
|
|
507
|
+
* This method will look for the view under the controller's {@link getViewPath viewPath}.
|
|
508
|
+
* If the view name starts with '/', the view will be looked for under the application's
|
|
509
|
+
* {@link CWebApplication::getViewPath viewPath}.
|
|
510
|
+
* The view script file is named as "ViewName.php". A localized view file
|
|
511
|
+
* may be returned if internationalization is needed. See {@link CApplication::findLocalizedFile}
|
|
512
|
+
* for more details.
|
|
513
|
+
* Since version 1.0.2, the view name can also refer to a path alias
|
|
514
|
+
* if it contains dot characters.
|
|
515
|
+
* Since version 1.0.3, if the controller belongs to a module, the view file
|
|
516
|
+
* will be searched under the {@link CWebModule::getViewPath module view path}.
|
|
517
|
+
* @param string name of the view (without file extension)
|
|
518
|
+
* @return string the view file path, false if the view file does not exist
|
|
519
|
+
* @see CApplication::findLocalizedFile
|
|
520
|
+
*/
|
|
521
|
+
public function getViewFile($viewName)
|
|
522
|
+
{
|
|
523
|
+
if(($theme=Yii::app()->getTheme())!==null && ($viewFile=$theme->getViewFile($this,$viewName))!==false)
|
|
524
|
+
return $viewFile;
|
|
525
|
+
$module=$this->getModule();
|
|
526
|
+
$basePath=$module ? $module->getViewPath() : Yii::app()->getViewPath();
|
|
527
|
+
return $this->resolveViewFile($viewName,$this->getViewPath(),$basePath);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Looks for the view script file for a layout.
|
|
532
|
+
* This method will look for the view under the application's {@link CWebApplication::getLayoutPath layoutPath}.
|
|
533
|
+
* If the view name starts with '/', the view will be looked for under the application's
|
|
534
|
+
* {@link CWebApplication::getViewPath viewPath}.
|
|
535
|
+
* If the view name is null, the application's {@link CWebApplication::layout default layout}
|
|
536
|
+
* will be used. If the view name is false, this method simply returns false.
|
|
537
|
+
* Since version 1.0.2, the view name can also refer to a path alias
|
|
538
|
+
* if it contains dot characters.
|
|
539
|
+
* Since version 1.0.3, if the controller belongs to a module, the view file
|
|
540
|
+
* will be searched under the {@link CWebModule::getViewPath module layout path},
|
|
541
|
+
* and if the view name is null, the {@link CWebModule::layout module default layout}
|
|
542
|
+
* will be used.
|
|
543
|
+
* @param mixed layout name
|
|
544
|
+
* @return string the view file for the layout. False if the view file cannot be found
|
|
545
|
+
*/
|
|
546
|
+
public function getLayoutFile($layoutName)
|
|
547
|
+
{
|
|
548
|
+
if($layoutName===false)
|
|
549
|
+
return false;
|
|
550
|
+
if(($theme=Yii::app()->getTheme())!==null && ($layoutFile=$theme->getLayoutFile($this,$layoutName))!==false)
|
|
551
|
+
return $layoutFile;
|
|
552
|
+
|
|
553
|
+
if(empty($layoutName))
|
|
554
|
+
{
|
|
555
|
+
$module=$this->getModule();
|
|
556
|
+
while($module!==null)
|
|
557
|
+
{
|
|
558
|
+
if($module->layout===false)
|
|
559
|
+
return false;
|
|
560
|
+
if(!empty($module->layout))
|
|
561
|
+
break;
|
|
562
|
+
$module=$module->getParentModule();
|
|
563
|
+
}
|
|
564
|
+
if($module===null)
|
|
565
|
+
$module=Yii::app();
|
|
566
|
+
return $this->resolveViewFile($module->layout,$module->getLayoutPath(),$module->getViewPath());
|
|
567
|
+
}
|
|
568
|
+
else
|
|
569
|
+
{
|
|
570
|
+
if(($module=$this->getModule())===null)
|
|
571
|
+
$module=Yii::app();
|
|
572
|
+
return $this->resolveViewFile($layoutName,$module->getLayoutPath(),$module->getViewPath());
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Finds a view file based on its name.
|
|
578
|
+
* The view name can be in one of the following formats:
|
|
579
|
+
* <ul>
|
|
580
|
+
* <li>absolute view: the view name starts with a slash '/'.</li>
|
|
581
|
+
* <li>aliased view: the view name contains dots and refers to a path alias.
|
|
582
|
+
* The view file is determined by calling {@link YiiBase::getPathOfAlias()}.</li>
|
|
583
|
+
* <li>relative view: otherwise.</li>
|
|
584
|
+
* </ul>
|
|
585
|
+
* For absolute view and relative view, the corresponding view file is a PHP file
|
|
586
|
+
* whose name is the same as the view name. The file is located under a specified directory.
|
|
587
|
+
* This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any.
|
|
588
|
+
* @param string the view name
|
|
589
|
+
* @param string the directory that is used to search for a relative view name
|
|
590
|
+
* @param string the directory that is used to search for an absolute view name
|
|
591
|
+
* @return mixed the view file path. False if the view file does not exist.
|
|
592
|
+
* @since 1.0.3
|
|
593
|
+
*/
|
|
594
|
+
public function resolveViewFile($viewName,$viewPath,$basePath)
|
|
595
|
+
{
|
|
596
|
+
if(empty($viewName))
|
|
597
|
+
return false;
|
|
598
|
+
if($viewName[0]==='/')
|
|
599
|
+
$viewFile=$basePath.$viewName.'.php';
|
|
600
|
+
else if(strpos($viewName,'.'))
|
|
601
|
+
$viewFile=Yii::getPathOfAlias($viewName).'.php';
|
|
602
|
+
else
|
|
603
|
+
{
|
|
604
|
+
// error_log("viewpath $viewPath, viewname $viewName");
|
|
605
|
+
$viewFile=$viewPath.DIRECTORY_SEPARATOR.$viewName.'.php';
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// error_log("viewfile {$viewFile}");
|
|
609
|
+
return is_file($viewFile) ? Yii::app()->findLocalizedFile($viewFile) : false;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Returns the list of clips.
|
|
614
|
+
* A clip is a named piece of rendering result that can be
|
|
615
|
+
* inserted at different places.
|
|
616
|
+
* @return CMap the list of clips
|
|
617
|
+
* @see CClipWidget
|
|
618
|
+
*/
|
|
619
|
+
public function getClips()
|
|
620
|
+
{
|
|
621
|
+
if($this->_clips!==null)
|
|
622
|
+
return $this->_clips;
|
|
623
|
+
else
|
|
624
|
+
return $this->_clips=new CMap;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Renders a view with a layout.
|
|
629
|
+
*
|
|
630
|
+
* This method first calls {@link renderPartial} to render the view (called content view).
|
|
631
|
+
* It then renders the layout view which may embed the content view at appropriate place.
|
|
632
|
+
* In the layout view, the content view rendering result can be accessed via variable
|
|
633
|
+
* <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts
|
|
634
|
+
* and dynamic contents if they are available.
|
|
635
|
+
*
|
|
636
|
+
* By default, the layout view script is "protected/views/layouts/main.php".
|
|
637
|
+
* This may be customized by changing {@link layout}.
|
|
638
|
+
*
|
|
639
|
+
* @param string name of the view to be rendered. See {@link getViewFile} for details
|
|
640
|
+
* about how the view script is resolved.
|
|
641
|
+
* @param array data to be extracted into PHP variables and made available to the view script
|
|
642
|
+
* @param boolean whether the rendering result should be returned instead of being displayed to end users.
|
|
643
|
+
* @return string the rendering result. Null if the rendering result is not required.
|
|
644
|
+
* @see renderPartial
|
|
645
|
+
* @see getLayoutFile
|
|
646
|
+
*/
|
|
647
|
+
public function render($view,$data=null,$return=false)
|
|
648
|
+
{
|
|
649
|
+
$output=$this->renderPartial($view,$data,true);
|
|
650
|
+
|
|
651
|
+
if(($layoutFile=$this->getLayoutFile($this->layout))!==false)
|
|
652
|
+
$output=$this->renderFile($layoutFile,array('content'=>$output),true);
|
|
653
|
+
|
|
654
|
+
$output=$this->processOutput($output);
|
|
655
|
+
|
|
656
|
+
if($return)
|
|
657
|
+
return $output;
|
|
658
|
+
else
|
|
659
|
+
echo $output;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Renders a static text string.
|
|
664
|
+
* The string will be inserted in the current controller layout and returned back.
|
|
665
|
+
* @param string the static text string
|
|
666
|
+
* @param boolean whether the rendering result should be returned instead of being displayed to end users.
|
|
667
|
+
* @return string the rendering result. Null if the rendering result is not required.
|
|
668
|
+
* @see getLayoutFile
|
|
669
|
+
*/
|
|
670
|
+
public function renderText($text,$return=false)
|
|
671
|
+
{
|
|
672
|
+
if(($layoutFile=$this->getLayoutFile($this->layout))!==false)
|
|
673
|
+
$text=$this->renderFile($layoutFile,array('content'=>$text),true);
|
|
674
|
+
|
|
675
|
+
$text=$this->processOutput($text);
|
|
676
|
+
|
|
677
|
+
if($return)
|
|
678
|
+
return $text;
|
|
679
|
+
else
|
|
680
|
+
echo $text;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Renders a view.
|
|
685
|
+
*
|
|
686
|
+
* The named view refers to a PHP script (resolved via {@link getViewFile})
|
|
687
|
+
* that is included by this method. If $data is an associative array,
|
|
688
|
+
* it will be extracted as PHP variables and made available to the script.
|
|
689
|
+
*
|
|
690
|
+
* This method differs from {@link render()} in that it does not
|
|
691
|
+
* apply a layout to the rendered result. It is thus mostly used
|
|
692
|
+
* in rendering a partial view, or an AJAX response.
|
|
693
|
+
*
|
|
694
|
+
* @param string name of the view to be rendered. See {@link getViewFile} for details
|
|
695
|
+
* about how the view script is resolved.
|
|
696
|
+
* @param array data to be extracted into PHP variables and made available to the view script
|
|
697
|
+
* @param boolean whether the rendering result should be returned instead of being displayed to end users
|
|
698
|
+
* @param boolean whether the rendering result should be postprocessed using {@link processOutput}.
|
|
699
|
+
* This parameter should be set true if renderPartial is the only method used to generate
|
|
700
|
+
* the output when handling a user request.
|
|
701
|
+
* @return string the rendering result. Null if the rendering result is not required.
|
|
702
|
+
* @throws CException if the view does not exist
|
|
703
|
+
* @see getViewFile
|
|
704
|
+
* @see processOutput
|
|
705
|
+
* @see render
|
|
706
|
+
*/
|
|
707
|
+
public function renderPartial($view,$data=null,$return=false,$processOutput=false)
|
|
708
|
+
{
|
|
709
|
+
if(($viewFile=$this->getViewFile($view))!==false)
|
|
710
|
+
{
|
|
711
|
+
$output=$this->renderFile($viewFile,$data,true);
|
|
712
|
+
if($processOutput)
|
|
713
|
+
$output=$this->processOutput($output);
|
|
714
|
+
if($return)
|
|
715
|
+
return $output;
|
|
716
|
+
else
|
|
717
|
+
echo $output;
|
|
718
|
+
}
|
|
719
|
+
else
|
|
720
|
+
throw new CException(Yii::t('yii','{controller} cannot find the requested view "{view}".',
|
|
721
|
+
array('{controller}'=>get_class($this), '{view}'=>$view)));
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Renders dynamic content returned by the specified callback.
|
|
726
|
+
* This method is used together with {@link COutputCache}. Dynamic contents
|
|
727
|
+
* will always show as their latest state even if the content surrounding them is being cached.
|
|
728
|
+
* This is especially useful when caching pages that are mostly static but contain some small
|
|
729
|
+
* dynamic regions, such as username or current time.
|
|
730
|
+
* We can use this method to render these dynamic regions to ensure they are always up-to-date.
|
|
731
|
+
*
|
|
732
|
+
* The first parameter to this method should be a valid PHP callback, while the rest parameters
|
|
733
|
+
* will be passed to the callback.
|
|
734
|
+
*
|
|
735
|
+
* Note, the callback and its parameter values will be serialized and saved in cache.
|
|
736
|
+
* Make sure they are serializable.
|
|
737
|
+
*
|
|
738
|
+
* @param callback a PHP callback which returns the needed dynamic content.
|
|
739
|
+
* When the callback is specified as a string, it will be first assumed to be a method of the current
|
|
740
|
+
* controller class. If the method does not exist, it is assumed to be a global PHP function.
|
|
741
|
+
* Note, the callback should return the dynamic content instead of echoing it.
|
|
742
|
+
*/
|
|
743
|
+
public function renderDynamic($callback)
|
|
744
|
+
{
|
|
745
|
+
$n=count($this->_dynamicOutput);
|
|
746
|
+
echo "<###dynamic-$n###>";
|
|
747
|
+
$params=func_get_args();
|
|
748
|
+
array_shift($params);
|
|
749
|
+
$this->renderDynamicInternal($callback,$params);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* This method is internally used.
|
|
754
|
+
* @param callback a PHP callback which returns the needed dynamic content.
|
|
755
|
+
* @param array parameters passed to the PHP callback
|
|
756
|
+
* @see renderDynamic
|
|
757
|
+
*/
|
|
758
|
+
public function renderDynamicInternal($callback,$params)
|
|
759
|
+
{
|
|
760
|
+
$this->recordCachingAction('','renderDynamicInternal',array($callback,$params));
|
|
761
|
+
if(is_string($callback) && method_exists($this,$callback))
|
|
762
|
+
$callback=array($this,$callback);
|
|
763
|
+
$this->_dynamicOutput[]=call_user_func_array($callback,$params);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Creates a relative URL for the specified action defined in this controller.
|
|
768
|
+
* @param string the URL route. This should be in the format of 'ControllerID/ActionID'.
|
|
769
|
+
* If the ControllerID is not present, the current controller ID will be prefixed to the route.
|
|
770
|
+
* If the route is empty, it is assumed to be the current action.
|
|
771
|
+
* Since version 1.0.3, if the controller belongs to a module, the {@link CWebModule::getId module ID}
|
|
772
|
+
* will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.)
|
|
773
|
+
* @param array additional GET parameters (name=>value). Both the name and value will be URL-encoded.
|
|
774
|
+
* If the name is '#', the corresponding value will be treated as an anchor
|
|
775
|
+
* and will be appended at the end of the URL. This anchor feature has been available since version 1.0.1.
|
|
776
|
+
* @param string the token separating name-value pairs in the URL.
|
|
777
|
+
* @return string the constructed URL
|
|
778
|
+
*/
|
|
779
|
+
public function createUrl($route,$params=array(),$ampersand='&')
|
|
780
|
+
{
|
|
781
|
+
if($route==='')
|
|
782
|
+
$route=$this->getId().'/'.$this->getAction()->getId();
|
|
783
|
+
else if(strpos($route,'/')===false)
|
|
784
|
+
$route=$this->getId().'/'.$route;
|
|
785
|
+
if($route[0]!=='/' && ($module=$this->getModule())!==null)
|
|
786
|
+
$route=$module->getId().'/'.$route;
|
|
787
|
+
return Yii::app()->createUrl(trim($route,'/'),$params,$ampersand);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Creates an absolute URL for the specified action defined in this controller.
|
|
792
|
+
* @param string the URL route. This should be in the format of 'ControllerID/ActionID'.
|
|
793
|
+
* If the ControllerPath is not present, the current controller ID will be prefixed to the route.
|
|
794
|
+
* If the route is empty, it is assumed to be the current action.
|
|
795
|
+
* @param array additional GET parameters (name=>value). Both the name and value will be URL-encoded.
|
|
796
|
+
* @param string schema to use (e.g. http, https). If empty, the schema used for the current request will be used.
|
|
797
|
+
* @param string the token separating name-value pairs in the URL.
|
|
798
|
+
* @return string the constructed URL
|
|
799
|
+
*/
|
|
800
|
+
public function createAbsoluteUrl($route,$params=array(),$schema='',$ampersand='&')
|
|
801
|
+
{
|
|
802
|
+
return Yii::app()->getRequest()->getHostInfo($schema).$this->createUrl($route,$params,$ampersand);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* @return string the page title. Defaults to the controller name and the action name.
|
|
807
|
+
*/
|
|
808
|
+
public function getPageTitle()
|
|
809
|
+
{
|
|
810
|
+
if($this->_pageTitle!==null)
|
|
811
|
+
return $this->_pageTitle;
|
|
812
|
+
else
|
|
813
|
+
{
|
|
814
|
+
$name=ucfirst(basename($this->getId()));
|
|
815
|
+
if($this->getAction()!==null && strcasecmp($this->getAction()->getId(),$this->defaultAction))
|
|
816
|
+
return $this->_pageTitle=Yii::app()->name.' - '.ucfirst($this->getAction()->getId()).' '.$name;
|
|
817
|
+
else
|
|
818
|
+
return $this->_pageTitle=Yii::app()->name.' - '.$name;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* @param string the page title.
|
|
824
|
+
*/
|
|
825
|
+
public function setPageTitle($value)
|
|
826
|
+
{
|
|
827
|
+
$this->_pageTitle=$value;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Redirects the browser to the specified URL or route (controller/action).
|
|
832
|
+
* @param mixed the URL to be redirected to. If the parameter is an array,
|
|
833
|
+
* the first element must be a route to a controller action and the rest
|
|
834
|
+
* are GET parameters in name-value pairs.
|
|
835
|
+
* @param boolean whether to terminate the current application after calling this method
|
|
836
|
+
* @param integer the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
|
|
837
|
+
* for details about HTTP status code. This parameter has been available since version 1.0.4.
|
|
838
|
+
*/
|
|
839
|
+
public function redirect($url,$terminate=true,$statusCode=302)
|
|
840
|
+
{
|
|
841
|
+
if(is_array($url))
|
|
842
|
+
{
|
|
843
|
+
$route=isset($url[0]) ? $url[0] : '';
|
|
844
|
+
$url=$this->createUrl($route,array_splice($url,1));
|
|
845
|
+
}
|
|
846
|
+
Yii::app()->getRequest()->redirect($url,$terminate,$statusCode);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Refreshes the current page.
|
|
851
|
+
* The effect of this method call is the same as user pressing the
|
|
852
|
+
* refresh button on the browser (without post data).
|
|
853
|
+
* @param boolean whether to terminate the current application after calling this method
|
|
854
|
+
* @param string the anchor that should be appended to the redirection URL.
|
|
855
|
+
* Defaults to empty. Make sure the anchor starts with '#' if you want to specify it.
|
|
856
|
+
* The parameter has been available since version 1.0.7.
|
|
857
|
+
**/
|
|
858
|
+
public function refresh($terminate=true,$anchor='')
|
|
859
|
+
{
|
|
860
|
+
$this->redirect(Yii::app()->getRequest()->getUrl().$anchor,$terminate);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Records a method call when an output cache is in effect.
|
|
865
|
+
* When the content is served from the output cache, the recorded
|
|
866
|
+
* method will be re-invoked.
|
|
867
|
+
* @param string a property name of the controller. It refers to an object
|
|
868
|
+
* whose method is being called. If empty it means the controller itself.
|
|
869
|
+
* @param string the method name
|
|
870
|
+
* @param array parameters passed to the method
|
|
871
|
+
* @see COutputCache
|
|
872
|
+
*/
|
|
873
|
+
public function recordCachingAction($context,$method,$params)
|
|
874
|
+
{
|
|
875
|
+
if($this->_cachingStack) // record only when there is an active output cache
|
|
876
|
+
{
|
|
877
|
+
foreach($this->_cachingStack as $cache)
|
|
878
|
+
$cache->recordAction($context,$method,$params);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* @param boolean whether to create a stack if it does not exist yet. Defaults to true.
|
|
884
|
+
* @return CStack stack of {@link COutputCache} objects
|
|
885
|
+
*/
|
|
886
|
+
public function getCachingStack($createIfNull=true)
|
|
887
|
+
{
|
|
888
|
+
if(!$this->_cachingStack)
|
|
889
|
+
$this->_cachingStack=new CStack;
|
|
890
|
+
return $this->_cachingStack;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* @return whether the caching stack is empty. If not empty, it means currently there are
|
|
895
|
+
* some output cache in effect. Note, the return result of this method may change when it is
|
|
896
|
+
* called in different output regions, depending on the partition of output caches.
|
|
897
|
+
* @since 1.0.5
|
|
898
|
+
*/
|
|
899
|
+
public function isCachingStackEmpty()
|
|
900
|
+
{
|
|
901
|
+
return $this->_cachingStack===null || !$this->_cachingStack->getCount();
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* This method is invoked right before an action is to be executed (after all possible filters.)
|
|
906
|
+
* You may override this method to do last-minute preparation for the action.
|
|
907
|
+
* @param CAction the action to be executed.
|
|
908
|
+
* @return boolean whether the action should be executed.
|
|
909
|
+
*/
|
|
910
|
+
protected function beforeAction($action)
|
|
911
|
+
{
|
|
912
|
+
return true;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* This method is invoked right after an action is executed.
|
|
917
|
+
* You may override this method to do some postprocessing for the action.
|
|
918
|
+
* @param CAction the action just executed.
|
|
919
|
+
*/
|
|
920
|
+
protected function afterAction($action)
|
|
921
|
+
{
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* The filter method for 'postOnly' filter.
|
|
926
|
+
* This filter reports an error if the applied action is receiving a non-POST request.
|
|
927
|
+
* @param CFilterChain the filter chain that the filter is on.
|
|
928
|
+
* @throws CHttpException if the current request is not a POST request
|
|
929
|
+
*/
|
|
930
|
+
public function filterPostOnly($filterChain)
|
|
931
|
+
{
|
|
932
|
+
if(Yii::app()->getRequest()->getIsPostRequest())
|
|
933
|
+
$filterChain->run();
|
|
934
|
+
else
|
|
935
|
+
throw new CHttpException(400,Yii::t('yii','Your request is not valid.'));
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* The filter method for 'ajaxOnly' filter.
|
|
940
|
+
* This filter reports an error if the applied action is receiving a non-AJAX request.
|
|
941
|
+
* @param CFilterChain the filter chain that the filter is on.
|
|
942
|
+
* @throws CHttpException if the current request is not an AJAX request.
|
|
943
|
+
*/
|
|
944
|
+
public function filterAjaxOnly($filterChain)
|
|
945
|
+
{
|
|
946
|
+
if(Yii::app()->getRequest()->getIsAjaxRequest())
|
|
947
|
+
$filterChain->run();
|
|
948
|
+
else
|
|
949
|
+
throw new CHttpException(400,Yii::t('yii','Your request is not valid.'));
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* The filter method for 'accessControl' filter.
|
|
954
|
+
* This filter is a wrapper of {@link CAccessControlFilter}.
|
|
955
|
+
* To use this filter, you must override {@link accessRules} method.
|
|
956
|
+
* @param CFilterChain the filter chain that the filter is on.
|
|
957
|
+
*/
|
|
958
|
+
public function filterAccessControl($filterChain)
|
|
959
|
+
{
|
|
960
|
+
$filter=new CAccessControlFilter;
|
|
961
|
+
$filter->setRules($this->accessRules());
|
|
962
|
+
$filter->filter($filterChain);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Generates pagination information.
|
|
967
|
+
* This method can be used to generate pagination information given item count
|
|
968
|
+
* and page size. The pagination information can then be passed to {@link CBasePager pagers}
|
|
969
|
+
* for corresponding rendering.
|
|
970
|
+
*
|
|
971
|
+
* Note: this method has been deprecated since version 1.0.1.
|
|
972
|
+
* You should directly use "new CPagination" to create a pagination object.
|
|
973
|
+
*
|
|
974
|
+
* @param integer the total item count
|
|
975
|
+
* @param integer the page size. See {@link CPagination} for default value.
|
|
976
|
+
* @param string the name of the GET variable storing the current page index. See {@link CPagination} for default value.
|
|
977
|
+
* @return CPagination the pagination information
|
|
978
|
+
*/
|
|
979
|
+
public function paginate($itemCount,$pageSize=null,$pageVar=null)
|
|
980
|
+
{
|
|
981
|
+
$pages=new CPagination($itemCount);
|
|
982
|
+
if($pageSize!==null)
|
|
983
|
+
$pages->pageSize=$pageSize;
|
|
984
|
+
if($pageVar!==null)
|
|
985
|
+
$pages->pageVar=$pageVar;
|
|
986
|
+
return $pages;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Returns a persistent page state value.
|
|
991
|
+
* A page state is a variable that is persistent across POST requests of the same page.
|
|
992
|
+
* In order to use persistent page states, the form(s) must be stateful
|
|
993
|
+
* which are generated using {@link CHtml::statefulForm}.
|
|
994
|
+
* @param string the state name
|
|
995
|
+
* @param mixed the value to be returned if the named state is not found
|
|
996
|
+
* @return mixed the page state value
|
|
997
|
+
* @see setPageState
|
|
998
|
+
* @see CHtml::statefulForm
|
|
999
|
+
*/
|
|
1000
|
+
public function getPageState($name,$defaultValue=null)
|
|
1001
|
+
{
|
|
1002
|
+
if($this->_pageStates===null)
|
|
1003
|
+
$this->_pageStates=$this->loadPageStates();
|
|
1004
|
+
return isset($this->_pageStates[$name])?$this->_pageStates[$name]:$defaultValue;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Saves a persistent page state value.
|
|
1009
|
+
* A page state is a variable that is persistent across POST requests of the same page.
|
|
1010
|
+
* In order to use persistent page states, the form(s) must be stateful
|
|
1011
|
+
* which are generated using {@link CHtml::statefulForm}.
|
|
1012
|
+
* @param string the state name
|
|
1013
|
+
* @param mixed the page state value
|
|
1014
|
+
* @param mixed the default page state value. If this is the same as
|
|
1015
|
+
* the given value, the state will be removed from persistent storage.
|
|
1016
|
+
* @see getPageState
|
|
1017
|
+
* @see CHtml::statefulForm
|
|
1018
|
+
*/
|
|
1019
|
+
public function setPageState($name,$value,$defaultValue=null)
|
|
1020
|
+
{
|
|
1021
|
+
if($this->_pageStates===null)
|
|
1022
|
+
$this->_pageStates=$this->loadPageStates();
|
|
1023
|
+
if($value===$defaultValue)
|
|
1024
|
+
unset($this->_pageStates[$name]);
|
|
1025
|
+
else
|
|
1026
|
+
$this->_pageStates[$name]=$value;
|
|
1027
|
+
|
|
1028
|
+
$params=func_get_args();
|
|
1029
|
+
$this->recordCachingAction('','setPageState',$params);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Removes all page states.
|
|
1034
|
+
*/
|
|
1035
|
+
public function clearPageStates()
|
|
1036
|
+
{
|
|
1037
|
+
$this->_pageStates=array();
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Loads page states from a hidden input.
|
|
1042
|
+
* @return array the loaded page states
|
|
1043
|
+
*/
|
|
1044
|
+
protected function loadPageStates()
|
|
1045
|
+
{
|
|
1046
|
+
if(isset($_POST[self::STATE_INPUT_NAME]) && !empty($_POST[self::STATE_INPUT_NAME]))
|
|
1047
|
+
{
|
|
1048
|
+
if(($data=base64_decode($_POST[self::STATE_INPUT_NAME]))!==false)
|
|
1049
|
+
{
|
|
1050
|
+
if(extension_loaded('zlib'))
|
|
1051
|
+
$data=@gzuncompress($data);
|
|
1052
|
+
if(($data=Yii::app()->getSecurityManager()->validateData($data))!==false)
|
|
1053
|
+
return unserialize($data);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
return array();
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Saves page states as a base64 string.
|
|
1061
|
+
* @param array the states to be saved.
|
|
1062
|
+
* @param string the output to be modified. Note, this is passed by reference.
|
|
1063
|
+
*/
|
|
1064
|
+
protected function savePageStates($states,&$output)
|
|
1065
|
+
{
|
|
1066
|
+
$data=Yii::app()->getSecurityManager()->hashData(serialize($states));
|
|
1067
|
+
if(extension_loaded('zlib'))
|
|
1068
|
+
$data=gzcompress($data);
|
|
1069
|
+
$value=base64_encode($data);
|
|
1070
|
+
$output=str_replace(CHtml::pageStateField(''),CHtml::pageStateField($value),$output);
|
|
1071
|
+
}
|
|
1072
|
+
}
|