Changeset 2980255
- Timestamp:
- 10/17/2023 03:56:33 PM (2 years ago)
- Location:
- acf-rrule-field
- Files:
-
- 50 edited
- 1 copied
-
tags/1.3.0 (copied) (copied from acf-rrule-field/trunk)
-
tags/1.3.0/acf-rrule.php (modified) (2 diffs)
-
tags/1.3.0/composer.json (modified) (1 diff)
-
tags/1.3.0/composer.lock (modified) (5 diffs)
-
tags/1.3.0/fields/class-acf-field-rrule.php (modified) (34 diffs)
-
tags/1.3.0/readme.txt (modified) (2 diffs)
-
tags/1.3.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
tags/1.3.0/vendor/composer/InstalledVersions.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.3.0/vendor/composer/autoload_static.php (modified) (4 diffs)
-
tags/1.3.0/vendor/composer/installed.json (modified) (3 diffs)
-
tags/1.3.0/vendor/composer/installed.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/platform_check.php (modified) (1 diff)
-
tags/1.3.0/vendor/doctrine/collections/CONTRIBUTING.md (modified) (1 diff)
-
tags/1.3.0/vendor/doctrine/collections/README.md (modified) (1 diff)
-
tags/1.3.0/vendor/doctrine/collections/composer.json (modified) (2 diffs)
-
tags/1.3.0/vendor/doctrine/collections/docs/en/expression-builder.rst (modified) (1 diff)
-
tags/1.3.0/vendor/doctrine/collections/docs/en/expressions.rst (modified) (2 diffs)
-
tags/1.3.0/vendor/doctrine/collections/docs/en/index.rst (modified) (6 diffs)
-
tags/1.3.0/vendor/doctrine/collections/docs/en/sidebar.rst (modified) (1 diff)
-
tags/1.3.0/vendor/simshaun/recurr/README.md (modified) (3 diffs)
-
tags/1.3.0/vendor/simshaun/recurr/composer.json (modified) (2 diffs)
-
trunk/acf-rrule.php (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/composer.lock (modified) (5 diffs)
-
trunk/fields/class-acf-field-rrule.php (modified) (34 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.json (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (1 diff)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/doctrine/collections/CONTRIBUTING.md (modified) (1 diff)
-
trunk/vendor/doctrine/collections/README.md (modified) (1 diff)
-
trunk/vendor/doctrine/collections/composer.json (modified) (2 diffs)
-
trunk/vendor/doctrine/collections/docs/en/expression-builder.rst (modified) (1 diff)
-
trunk/vendor/doctrine/collections/docs/en/expressions.rst (modified) (2 diffs)
-
trunk/vendor/doctrine/collections/docs/en/index.rst (modified) (6 diffs)
-
trunk/vendor/doctrine/collections/docs/en/sidebar.rst (modified) (1 diff)
-
trunk/vendor/simshaun/recurr/README.md (modified) (3 diffs)
-
trunk/vendor/simshaun/recurr/composer.json (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-rrule-field/tags/1.3.0/acf-rrule.php
r2814099 r2980255 5 5 Plugin URI: https://github.com/marcbelletre/acf-rrule 6 6 Description: Create recurring rules with a single ACF field 7 Version: 1. 2.57 Version: 1.3.0 8 8 Author: Marc Bellêtre 9 9 Author URI: https://pixelparfait.fr … … 45 45 // - these will be passed into the field class. 46 46 $this->settings = [ 47 'version' => '1. 2.5',47 'version' => '1.3.0', 48 48 'url' => plugin_dir_url(__FILE__), 49 49 'path' => plugin_dir_path(__FILE__), -
acf-rrule-field/tags/1.3.0/composer.json
r2421882 r2980255 1 1 { 2 "name": "marcbelletre/acf-rrule", 3 "description": "RRule field for Advanced Custom Fields", 4 "type": "wordpress-plugin", 5 "keywords": ["acf", "rrule", "recurring", "date"], 6 "license": "MIT", 7 "authors": [ 8 { 9 "name": "Marc Bellêtre", 10 "email": "[email protected]", 11 "homepage": "https://pixelparfait.fr" 12 } 13 ], 14 "support": { 15 "issues": "https://github.com/marcbelletre/acf-rrule/issues" 16 }, 17 "require": { 18 "simshaun/recurr": "^4.0", 19 "composer/installers": "~1.0" 2 "name": "marcbelletre/acf-rrule", 3 "description": "RRule field for Advanced Custom Fields", 4 "type": "wordpress-plugin", 5 "keywords": [ 6 "acf", 7 "rrule", 8 "recurring", 9 "date" 10 ], 11 "license": "MIT", 12 "authors": [ 13 { 14 "name": "Marc Bellêtre", 15 "email": "[email protected]", 16 "homepage": "https://pixelparfait.fr" 20 17 } 18 ], 19 "support": { 20 "issues": "https://github.com/marcbelletre/acf-rrule/issues" 21 }, 22 "require": { 23 "simshaun/recurr": "^5.0", 24 "composer/installers": "~1.0" 25 }, 26 "config": { 27 "allow-plugins": { 28 "composer/installers": true 29 } 30 } 21 31 } -
acf-rrule-field/tags/1.3.0/composer.lock
r2628164 r2980255 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " c30f9a9a5de399f90436768128439030",7 "content-hash": "b1dba48b1733046ff32a3a88e9019555", 8 8 "packages": [ 9 9 { … … 160 160 { 161 161 "name": "doctrine/collections", 162 "version": " 1.6.8",162 "version": "2.1.4", 163 163 "source": { 164 164 "type": "git", 165 165 "url": "https://github.com/doctrine/collections.git", 166 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af"166 "reference": "72328a11443a0de79967104ad36ba7b30bded134" 167 167 }, 168 168 "dist": { 169 169 "type": "zip", 170 "url": "https://api.github.com/repos/doctrine/collections/zipball/ 1958a744696c6bb3bb0d28db2611dc11610e78af",171 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af",170 "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134", 171 "reference": "72328a11443a0de79967104ad36ba7b30bded134", 172 172 "shasum": "" 173 173 }, 174 174 "require": { 175 "php": "^7.1.3 || ^8.0" 175 "doctrine/deprecations": "^1", 176 "php": "^8.1" 176 177 }, 177 178 "require-dev": { 178 "doctrine/coding-standard": "^9.0", 179 "phpstan/phpstan": "^0.12", 180 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 181 "vimeo/psalm": "^4.2.1" 179 "doctrine/coding-standard": "^12", 180 "ext-json": "*", 181 "phpstan/phpstan": "^1.8", 182 "phpstan/phpstan-phpunit": "^1.0", 183 "phpunit/phpunit": "^9.5", 184 "vimeo/psalm": "^5.11" 182 185 }, 183 186 "type": "library", 184 187 "autoload": { 185 188 "psr-4": { 186 "Doctrine\\Common\\Collections\\": " lib/Doctrine/Common/Collections"189 "Doctrine\\Common\\Collections\\": "src" 187 190 } 188 191 }, … … 223 226 "support": { 224 227 "issues": "https://github.com/doctrine/collections/issues", 225 "source": "https://github.com/doctrine/collections/tree/1.6.8" 226 }, 227 "time": "2021-08-10T18:51:53+00:00" 228 "source": "https://github.com/doctrine/collections/tree/2.1.4" 229 }, 230 "funding": [ 231 { 232 "url": "https://www.doctrine-project.org/sponsorship.html", 233 "type": "custom" 234 }, 235 { 236 "url": "https://www.patreon.com/phpdoctrine", 237 "type": "patreon" 238 }, 239 { 240 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections", 241 "type": "tidelift" 242 } 243 ], 244 "time": "2023-10-03T09:22:33+00:00" 245 }, 246 { 247 "name": "doctrine/deprecations", 248 "version": "1.1.2", 249 "source": { 250 "type": "git", 251 "url": "https://github.com/doctrine/deprecations.git", 252 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" 253 }, 254 "dist": { 255 "type": "zip", 256 "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 257 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 258 "shasum": "" 259 }, 260 "require": { 261 "php": "^7.1 || ^8.0" 262 }, 263 "require-dev": { 264 "doctrine/coding-standard": "^9", 265 "phpstan/phpstan": "1.4.10 || 1.10.15", 266 "phpstan/phpstan-phpunit": "^1.0", 267 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 268 "psalm/plugin-phpunit": "0.18.4", 269 "psr/log": "^1 || ^2 || ^3", 270 "vimeo/psalm": "4.30.0 || 5.12.0" 271 }, 272 "suggest": { 273 "psr/log": "Allows logging deprecations via PSR-3 logger implementation" 274 }, 275 "type": "library", 276 "autoload": { 277 "psr-4": { 278 "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" 279 } 280 }, 281 "notification-url": "https://packagist.org/downloads/", 282 "license": [ 283 "MIT" 284 ], 285 "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", 286 "homepage": "https://www.doctrine-project.org/", 287 "support": { 288 "issues": "https://github.com/doctrine/deprecations/issues", 289 "source": "https://github.com/doctrine/deprecations/tree/1.1.2" 290 }, 291 "time": "2023-09-27T20:04:15+00:00" 228 292 }, 229 293 { 230 294 "name": "simshaun/recurr", 231 "version": "v 4.0.5",295 "version": "v5.0.2", 232 296 "source": { 233 297 "type": "git", 234 298 "url": "https://github.com/simshaun/recurr.git", 235 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749"299 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172" 236 300 }, 237 301 "dist": { 238 302 "type": "zip", 239 "url": "https://api.github.com/repos/simshaun/recurr/zipball/ 08b0b46879f598cd11dd42b4c1a9c221a0562749",240 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749",303 "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172", 304 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172", 241 305 "shasum": "" 242 306 }, 243 307 "require": { 244 "doctrine/collections": "~1. 3",245 "php": " >=5.5.0"308 "doctrine/collections": "~1.6||^2.0", 309 "php": "^7.2||^8.0" 246 310 }, 247 311 "require-dev": { 248 "phpunit/phpunit": "~5.7" 312 "phpunit/phpunit": "^8.5.16", 313 "symfony/yaml": "^5.3" 249 314 }, 250 315 "type": "library", … … 281 346 "support": { 282 347 "issues": "https://github.com/simshaun/recurr/issues", 283 "source": "https://github.com/simshaun/recurr/tree/v 4.0.5"284 }, 285 "time": "202 1-03-25T23:00:49+00:00"348 "source": "https://github.com/simshaun/recurr/tree/v5.0.2" 349 }, 350 "time": "2023-09-26T20:31:33+00:00" 286 351 } 287 352 ], … … 294 359 "platform": [], 295 360 "platform-dev": [], 296 "plugin-api-version": "2. 0.0"361 "plugin-api-version": "2.3.0" 297 362 } -
acf-rrule-field/tags/1.3.0/fields/class-acf-field-rrule.php
r2814099 r2980255 1 1 <?php 2 2 3 use \Recurr\Rule;3 use Recurr\Rule; 4 4 5 5 // Exit if accessed directly … … 50 50 */ 51 51 52 $this->defaults = array(52 $this->defaults = [ 53 53 'date_display_format' => 'j F Y', 54 54 'date_return_format' => 'Y-m-d', 55 55 'allow_time' => false, 56 56 'time_display_format' => 'H:i', 57 'time zone' => get_option('timezone_string') ?: 'UTC',58 );57 'time_return_format' => 'H:i', 58 ]; 59 59 60 60 /* … … 107 107 $m_d_Y = date_i18n('m/d/Y'); 108 108 $F_j_Y = date_i18n('F j, Y'); 109 $g_i_a = date_i18n('g:i a'); 110 $H_i = date_i18n('H:i'); 109 111 $Ymd = date_i18n('Ymd'); 110 112 111 // Display format 112 acf_render_field_setting($field, array( 113 'label' => __('Date Display Format', 'acf-rrule-field'), 114 'instructions' => __('The date format displayed when editing a post', 'acf-rrule-field'), 115 'type' => 'radio', 116 'name' => 'date_display_format', 117 'other_choice' => 1, 118 'choices' => array( 119 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 120 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 121 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 122 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>' 123 ) 124 )); 125 126 // Return format 127 acf_render_field_setting($field, array( 128 'label' => __('Date Return Format', 'acf-rrule-field'), 129 'instructions' => __('The date format returned via template functions', 'acf-rrule-field'), 130 'type' => 'radio', 131 'name' => 'return_format', 132 'other_choice' => 1, 133 'choices' => array( 134 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 135 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 136 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 137 'Ymd' => '<span>' . $Ymd . '</span><code>Ymd</code>', 138 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>' 139 ) 140 )); 113 echo '<div class="acf-field-settings-split">'; 114 115 // Date display format 116 acf_render_field_setting($field, [ 117 'label' => __('Date Display Format', 'acf-rrule-field'), 118 'instructions' => __('The date format displayed when editing a post', 'acf-rrule-field'), 119 'type' => 'radio', 120 'name' => 'date_display_format', 121 'other_choice' => 1, 122 'choices' => [ 123 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 124 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 125 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 126 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 127 ], 128 ]); 129 130 // Date return format 131 acf_render_field_setting($field, [ 132 'label' => __('Date Return Format', 'acf-rrule-field'), 133 'instructions' => __('The date format returned via template functions', 'acf-rrule-field'), 134 'type' => 'radio', 135 'name' => 'date_return_format', 136 'other_choice' => 1, 137 'choices' => [ 138 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 139 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 140 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 141 'Ymd' => '<span>' . $Ymd . '</span><code>Ymd</code>', 142 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 143 ], 144 ]); 145 146 echo '</div>'; 147 148 echo '<div class="acf-field-settings-split">'; 141 149 142 150 // Allow time selector 143 acf_render_field_setting($field, array( 144 'label' => __('Time Selector', 'acf-rrule-field'), 145 'instructions' => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'), 146 'name' => 'allow_time', 147 'type' => 'true_false', 148 'ui' => 1, 149 )); 151 acf_render_field_setting($field, [ 152 'label' => __('Time Selector', 'acf-rrule-field'), 153 'instructions' => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'), 154 'name' => 'allow_time', 155 'type' => 'true_false', 156 'ui' => 1, 157 ]); 158 159 echo '</div>'; 160 161 echo '<div class="acf-field-settings-split">'; 162 163 // Time display format 164 acf_render_field_setting($field, [ 165 'label' => __('Time Display Format', 'acf-rrule-field'), 166 'instructions' => __('The time format displayed when editing a post', 'acf-rrule-field'), 167 'type' => 'radio', 168 'name' => 'time_display_format', 169 'other_choice' => 1, 170 'choices' => [ 171 'H:i' => '<span>' . $H_i . '</span><code>H:i</code>', 172 'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>', 173 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 174 ], 175 'conditions' => [ 176 'field' => 'allow_time', 177 'operator' => '==', 178 'value' => 1 179 ], 180 ]); 181 182 // Time return format 183 acf_render_field_setting($field, [ 184 'label' => __('Time Return Format', 'acf-rrule-field'), 185 'instructions' => __('The time format returned via template functions', 'acf-rrule-field'), 186 'type' => 'radio', 187 'name' => 'time_return_format', 188 'other_choice' => 1, 189 'choices' => [ 190 'H:i' => '<span>' . $H_i . '</span><code>H:i</code>', 191 'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>', 192 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 193 ], 194 'conditions' => [ 195 'field' => 'allow_time', 196 'operator' => '==', 197 'value' => 1 198 ], 199 ]); 200 201 echo '</div>'; 150 202 } 151 152 203 153 204 /* … … 172 223 173 224 // Datepicker options 174 $datepicker_options = array(225 $datepicker_options = [ 175 226 'class' => 'acf-date-picker acf-input-wrap', 176 227 'data-date_format' => acf_convert_date_to_js($field['date_display_format']), 177 );178 $timepicker_options = array(228 ]; 229 $timepicker_options = [ 179 230 'class' => 'acf-time-picker acf-input-wrap', 180 ); ?> 231 'data-time_format' => acf_convert_time_to_js($field['time_display_format']), 232 ]; ?> 181 233 182 234 <div class="acf-input-wrap"> … … 185 237 <?php if ($field['value'] && $field['value']['text']) : ?> 186 238 <p class="acf-field-rrule-current"> 187 <?php _e('Current value:', 'acf-rrule-field'); ?> <?= $field['value']['text'] ?> 239 <?php _e('Current value:', 'acf-rrule-field'); ?> 240 <?= $field['value']['text'] ?> 188 241 </p> 189 242 <?php endif; ?> … … 211 264 </div> 212 265 213 <?php acf_hidden_input( array(266 <?php acf_hidden_input([ 214 267 'name' => $field['name'] . '[start_date]', 215 268 'value' => $start_date_hidden, 216 )); ?>217 <?php acf_text_input( array(269 ]); ?> 270 <?php acf_text_input([ 218 271 'id' => $unique_id . '-start-date', 219 272 'class' => 'input', 220 273 'value' => $start_date_display, 221 )); ?>274 ]); ?> 222 275 </div> 223 276 </div> … … 242 295 </div> 243 296 244 <?php acf_hidden_input( array(297 <?php acf_hidden_input([ 245 298 'name' => $field['name'] . '[start_time]', 246 'value' => $start_time,247 )); ?>248 <?php acf_text_input( array(299 'value' => $start_time, 300 ]); ?> 301 <?php acf_text_input([ 249 302 'id' => $unique_id . '-start-time', 250 303 'class' => 'input', 251 'value' => $start_time,252 )); ?>304 'value' => $start_time, 305 ]); ?> 253 306 </div> 254 307 </div> … … 260 313 <div class="acf-field"> 261 314 <?php 262 $frequency = array(315 $frequency = [ 263 316 'id' => $field['id'] . '-frequency', 264 317 'name' => $field['name'] . '[frequency]', 265 318 'value' => is_array($field['value']) ? $field['value']['frequency'] : null, 266 319 'class' => 'frequency-select', 267 'choices' => array(320 'choices' => [ 268 321 'DAILY' => __('Daily', 'acf-rrule-field'), 269 322 'WEEKLY' => __('Weekly', 'acf-rrule-field'), 270 323 'MONTHLY' => __('Monthly', 'acf-rrule-field'), 271 324 'YEARLY' => __('Yearly', 'acf-rrule-field'), 272 ),273 ); ?>325 ], 326 ]; ?> 274 327 275 328 <div class="acf-label"> … … 286 339 <div class="acf-field"> 287 340 <?php 288 $interval = array(341 $interval = [ 289 342 'id' => $field['id'] . '-interval', 290 343 'name' => $field['name'] . '[interval]', … … 294 347 'min' => 1, 295 348 'step' => 1, 296 ); ?>349 ]; ?> 297 350 298 351 <div class="acf-input"> 299 <div class="acf-input-prepend"><?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?></div> 352 <div class="acf-input-prepend"> 353 <?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?> 354 </div> 300 355 <div class="acf-input-append"> 301 356 <span class="freq-suffix" data-frequency="DAILY"><?= _x('day', 'RRule Interval', 'acf-rrule-field') ?></span> … … 312 367 <div class="acf-field acf-field-button-group" data-type="button_group_multiple" data-frequency="WEEKLY"> 313 368 <?php 314 $weekdays = array(369 $weekdays = [ 315 370 'MO' => __('Monday', 'acf-rrule-field'), 316 371 'TU' => __('Tuesday', 'acf-rrule-field'), … … 320 375 'SA' => __('Saturday', 'acf-rrule-field'), 321 376 'SU' => __('Sunday', 'acf-rrule-field'), 322 ); ?>377 ]; ?> 323 378 324 379 <div class="acf-label"> … … 331 386 <div class="acf-button-group"> 332 387 <?php foreach ($weekdays as $key => $value) : ?> 333 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'] , true); ?>388 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?> 334 389 335 390 <label<?= ($selected ? ' class="selected"' : '') ?>> 336 <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>> <?= $value ?> 391 <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>> 392 <?= $value ?> 337 393 </label> 338 394 <?php endforeach; ?> … … 358 414 <tr> 359 415 <?php foreach ($week as $day) : ?> 360 <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays'] , true); ?>416 <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays']); ?> 361 417 362 418 <td> … … 397 453 398 454 if (is_array($field['value']) && is_array($field['value']['bysetpos'])) { 399 $selected = in_array((string) $key, $field['value']['bysetpos'] , true);455 $selected = in_array((string) $key, $field['value']['bysetpos']); 400 456 } ?> 401 457 … … 413 469 <ul class="acf-checkbox-list"> 414 470 <?php foreach ($weekdays as $key => $value) : ?> 415 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'] , true); ?>471 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?> 416 472 417 473 <li> … … 436 492 437 493 <div class="acf-input"> 438 <?php $months = array(494 <?php $months = [ 439 495 '1' => __('January', 'acf-rrule-field'), 440 496 '2' => __('February', 'acf-rrule-field'), … … 449 505 '11' => __('November', 'acf-rrule-field'), 450 506 '12' => __('December', 'acf-rrule-field'), 451 ); ?>507 ]; ?> 452 508 453 509 <input type="hidden" name="<?= $field['name'] ?>[months]"> … … 455 511 <ul class="acf-checkbox-list acf-hl"> 456 512 <?php foreach ($months as $key => $month) : ?> 457 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months'] , true); ?>513 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months']); ?> 458 514 459 515 <li> … … 475 531 </div> 476 532 <div class="acf-input"> 477 <?php acf_select_input( array(533 <?php acf_select_input([ 478 534 'id' => $field['id'] . '-end-type', 479 535 'name' => $field['name'] . '[end_type]', 480 536 'value' => $field['value'] ? $field['value']['end_type'] : null, 481 537 'class' => 'end-type-select', 482 'choices' => array(538 'choices' => [ 483 539 'date' => __('At a specific date', 'acf-rrule-field'), 484 540 'count' => __('After a number of occurrences', 'acf-rrule-field'), 485 'none' => __('Never', 'acf-rrule-field'),486 ),487 )); ?>541 'none' => __('Never', 'acf-rrule-field'), 542 ], 543 ]); ?> 488 544 </div> 489 545 </div> … … 491 547 <div class="acf-field" data-end-type="count"> 492 548 <?php 493 $occurrence_count = array(549 $occurrence_count = [ 494 550 'id' => $field['id'] . '-occurrence-count', 495 551 'name' => $field['name'] . '[occurrence_count]', 496 552 'type' => 'number', 497 553 'class' => 'acf-is-prepended acf-is-appended', 498 'value' => is_array($field['value']) ? $field['value']['occurrence_count'] : null,554 'value' => is_array($field['value']) ? $field['value']['occurrence_count'] : null, 499 555 'min' => 1, 500 556 'step' => 1, 501 ); ?>557 ]; ?> 502 558 503 559 <div class="acf-input"> 504 <div class="acf-input-prepend"><?php _e('After', 'acf-rrule-field'); ?></div> 505 <div class="acf-input-append"><?php _e('occurrence(s)', 'acf-rrule-field'); ?></div> 560 <div class="acf-input-prepend"> 561 <?php _e('After', 'acf-rrule-field'); ?> 562 </div> 563 <div class="acf-input-append"> 564 <?php _e('occurrence(s)', 'acf-rrule-field'); ?> 565 </div> 506 566 <div class="acf-input-wrap"> 507 567 <?php acf_text_input($occurrence_count); ?> … … 523 583 524 584 <div class="acf-input"> 525 <div class="acf-input-prepend"><?php _e('Until', 'acf-rrule-field'); ?></div> 585 <div class="acf-input-prepend"> 586 <?php _e('Until', 'acf-rrule-field'); ?> 587 </div> 526 588 <div class="acf-input-wrap"> 527 <?php acf_hidden_input( array(589 <?php acf_hidden_input([ 528 590 'name' => $field['name'] . '[end_date]', 529 'value' => $end_date_hidden,530 )); ?>531 <?php acf_text_input( array(591 'value' => $end_date_hidden, 592 ]); ?> 593 <?php acf_text_input([ 532 594 'id' => $unique_id . '-end-date', 533 595 'class' => 'acf-is-prepended', 534 'value' => $end_date_display,535 )); ?>596 'value' => $end_date_display, 597 ]); ?> 536 598 </div> 537 599 </div> … … 560 622 public function input_admin_enqueue_scripts() 561 623 { 562 563 624 // Bail early if no enqueue 564 625 if (!acf_get_setting('enqueue_datepicker')) { … … 569 630 global $wp_locale; 570 631 571 acf_localize_data( array(572 'datePickerL10n' => array(573 'closeText' => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'),574 'currentText' => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'),575 'nextText' => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'),576 'prevText' => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'),577 'weekHeader' => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'),578 'monthNames' => array_values($wp_locale->month),579 'monthNamesShort' => array_values($wp_locale->month_abbrev),580 'dayNames' => array_values($wp_locale->weekday),581 'dayNamesMin' => array_values($wp_locale->weekday_initial),582 'dayNamesShort' => array_values($wp_locale->weekday_abbrev)583 )584 ));632 acf_localize_data([ 633 'datePickerL10n' => [ 634 'closeText' => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'), 635 'currentText' => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'), 636 'nextText' => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'), 637 'prevText' => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'), 638 'weekHeader' => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'), 639 'monthNames' => array_values($wp_locale->month), 640 'monthNamesShort' => array_values($wp_locale->month_abbrev), 641 'dayNames' => array_values($wp_locale->weekday), 642 'dayNamesMin' => array_values($wp_locale->weekday_initial), 643 'dayNamesShort' => array_values($wp_locale->weekday_abbrev), 644 ], 645 ]); 585 646 586 647 // Enqueue scripts … … 588 649 589 650 // Enqueue style 590 wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), array(), '1.11.4');651 wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), [], '1.11.4'); 591 652 592 653 // Init vars … … 595 656 596 657 // Register & include JS 597 wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", array('acf-input'), $version);658 wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", ['acf-input'], $version); 598 659 599 660 // Register & include CSS 600 wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", array('acf-input'), $version);661 wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", ['acf-input'], $version); 601 662 } 602 663 … … 618 679 public function load_value($value, $post_id, $field) 619 680 { 620 $new_value = array(681 $new_value = [ 621 682 'rrule' => null, 622 683 'start_date' => null, … … 624 685 'frequency' => 'WEEKLY', 625 686 'interval' => 1, 626 'weekdays' => array(),627 'monthdays' => array(),628 'months' => array(),687 'weekdays' => [], 688 'monthdays' => [], 689 'months' => [], 629 690 'monthly_by' => 'monthdays', 630 691 'bysetpos' => [], … … 635 696 'dates_collection' => null, 636 697 'text' => null, 637 );698 ]; 638 699 639 700 if ($value) { 701 $timezoneString = get_option('timezone_string') ?: 'UTC'; 702 640 703 try { 641 704 $rule = new Rule($value); 642 705 706 $rule->setTimezone($timezoneString); 707 643 708 $start_date = $rule->getStartDate(); 644 709 645 710 $new_value['rrule'] = $value; 646 $new_value['start_date'] = $start_date ->format('Ymd');647 $new_value['start_time'] = $start_date ->format('H:i:s');711 $new_value['start_date'] = $start_date?->format('Ymd'); 712 $new_value['start_time'] = $start_date?->format('H:i:s'); 648 713 $new_value['frequency'] = $rule->getFreqAsText(); 649 714 $new_value['interval'] = $rule->getInterval(); 650 $new_value['weekdays'] = $rule->getByDay() ?: array();651 $new_value['monthdays'] = $rule->getByMonthDay() ?: array();652 $new_value['months'] = $rule->getByMonth() ?: array();715 $new_value['weekdays'] = $rule->getByDay() ?: []; 716 $new_value['monthdays'] = $rule->getByMonthDay() ?: []; 717 $new_value['months'] = $rule->getByMonth() ?: []; 653 718 654 719 if ($new_value['frequency'] === 'MONTHLY') { 655 if ( sizeof($new_value['weekdays']) > 0) {720 if (count($new_value['weekdays']) > 0) { 656 721 $new_value['monthly_by'] = 'setpos'; 657 722 $set_position = $rule->getBySetPosition(); … … 670 735 ); 671 736 672 $new_value['dates_collection'] = array();737 $new_value['dates_collection'] = []; 673 738 674 739 foreach ($transformer->transform($rule) as $recurrence) { … … 677 742 678 743 if ($rule->getUntil()) { 679 $end_date = $rule->get Until();744 $end_date = $rule->getEndDate() ?: $rule->getUntil(); 680 745 681 746 $new_value['end_type'] = 'date'; … … 720 785 { 721 786 if (is_array($value)) { 722 $start_date = \DateTime::createFromFormat('Ymd', $value['start_date']); 787 $timezoneString = get_option('timezone_string') ?: 'UTC'; 788 $timezone = new \DateTimeZone($timezoneString); 789 790 $start_date = \DateTime::createFromFormat('Ymd', $value['start_date'], $timezone); 723 791 724 792 // Bail early if the DateTime object is null … … 736 804 $rule = new Rule; 737 805 738 // Ensure timezone arg is never blank 739 $timezone = $field['timezone'] ?: $this->defaults['timezone']; 740 741 $rule->setTimezone($timezone) 806 $rule->setTimezone($timezoneString) 742 807 ->setStartDate($start_date, true) 743 808 ->setFreq($value['frequency']) … … 772 837 case 'date': 773 838 if ($value['end_date']) { 774 $end_date = \DateTime::createFromFormat('Ymd', $value['end_date'] );839 $end_date = \DateTime::createFromFormat('Ymd', $value['end_date'], $timezone); 775 840 $end_date->setTime(0, 0, 0); 776 841 777 842 $rule->setUntil($end_date); 843 $rule->setEndDate($end_date); 778 844 } 779 845 -
acf-rrule-field/tags/1.3.0/readme.txt
r2814099 r2980255 3 3 Tags: acf, rrule, recurrence, date, calendar 4 4 Requires at least: 4.7 5 Tested up to: 6. 15 Tested up to: 6.3 6 6 Requires PHP: 5.6 7 Stable tag: 1. 2.57 Stable tag: 1.3.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 == Changelog == 33 34 = 1.3.0 = 35 * Add time picker options 36 * Fix compatibility with ACF Extended plugin 37 * Fix selection not being reflected in the calendar 33 38 34 39 = 1.2.5 = -
acf-rrule-field/tags/1.3.0/vendor/autoload.php
r2628164 r2980255 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c1::getLoader();25 return ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59::getLoader(); -
acf-rrule-field/tags/1.3.0/vendor/composer/ClassLoader.php
r2628164 r2980255 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var self[] 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param ?string $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 113 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 90 * @param array $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param string[]|string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) { 394 return; 395 } 396 397 if ($prepend) { 398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 399 } else { 400 unset(self::$registeredLoaders[$this->vendorDir]); 401 self::$registeredLoaders[$this->vendorDir] = $this; 402 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 478 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories. 480 * 481 * @return self[] 482 */ 483 public static function getRegisteredLoaders() 484 { 485 return self::$registeredLoaders; 486 } 487 488 /** 489 * @param string $class 490 * @param string $ext 491 * @return string|false 492 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
acf-rrule-field/tags/1.3.0/vendor/composer/InstalledVersions.php
r2628164 r2980255 1 1 <?php 2 2 3 4 5 6 7 8 9 10 11 3 /* 4 * This file is part of Composer. 5 * 6 * (c) Nils Adermann <[email protected]> 7 * Jordi Boggiano <[email protected]> 8 * 9 * For the full copyright and license information, please view the LICENSE 10 * file that was distributed with this source code. 11 */ 12 12 13 13 namespace Composer; 14 14 15 use Composer\Autoload\ClassLoader; 15 16 use Composer\Semver\VersionParser; 16 17 17 18 19 20 21 18 /** 19 * This class is copied in every Composer installed project and available to all 20 * 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 * 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 26 */ 22 27 class InstalledVersions 23 28 { 24 private static $installed = array ( 25 'root' => 26 array ( 27 'pretty_version' => 'dev-master', 28 'version' => 'dev-master', 29 'aliases' => 30 array ( 31 ), 32 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1', 33 'name' => 'marcbelletre/acf-rrule', 34 ), 35 'versions' => 36 array ( 37 'composer/installers' => 38 array ( 39 'pretty_version' => 'v1.12.0', 40 'version' => '1.12.0.0', 41 'aliases' => 42 array ( 43 ), 44 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', 45 ), 46 'doctrine/collections' => 47 array ( 48 'pretty_version' => '1.6.8', 49 'version' => '1.6.8.0', 50 'aliases' => 51 array ( 52 ), 53 'reference' => '1958a744696c6bb3bb0d28db2611dc11610e78af', 54 ), 55 'marcbelletre/acf-rrule' => 56 array ( 57 'pretty_version' => 'dev-master', 58 'version' => 'dev-master', 59 'aliases' => 60 array ( 61 ), 62 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1', 63 ), 64 'roundcube/plugin-installer' => 65 array ( 66 'replaced' => 67 array ( 68 0 => '*', 69 ), 70 ), 71 'shama/baton' => 72 array ( 73 'replaced' => 74 array ( 75 0 => '*', 76 ), 77 ), 78 'simshaun/recurr' => 79 array ( 80 'pretty_version' => 'v4.0.5', 81 'version' => '4.0.5.0', 82 'aliases' => 83 array ( 84 ), 85 'reference' => '08b0b46879f598cd11dd42b4c1a9c221a0562749', 86 ), 87 ), 88 ); 89 90 91 92 93 94 95 96 public static function getInstalledPackages() 97 { 98 return array_keys(self::$installed['versions']); 29 /** 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 */ 33 private static $installed; 34 35 /** 36 * @var bool|null 37 */ 38 private static $canGetVendors; 39 40 /** 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 43 */ 44 private static $installedByVendor = array(); 45 46 /** 47 * Returns a list of all package names which are present, either by being installed, replaced or provided 48 * 49 * @return string[] 50 * @psalm-return list<string> 51 */ 52 public static function getInstalledPackages() 53 { 54 $packages = array(); 55 foreach (self::getInstalled() as $installed) { 56 $packages[] = array_keys($installed['versions']); 57 } 58 59 if (1 === \count($packages)) { 60 return $packages[0]; 61 } 62 63 return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); 64 } 65 66 /** 67 * Returns a list of all package names with a specific type e.g. 'library' 68 * 69 * @param string $type 70 * @return string[] 71 * @psalm-return list<string> 72 */ 73 public static function getInstalledPackagesByType($type) 74 { 75 $packagesByType = array(); 76 77 foreach (self::getInstalled() as $installed) { 78 foreach ($installed['versions'] as $name => $package) { 79 if (isset($package['type']) && $package['type'] === $type) { 80 $packagesByType[] = $name; 81 } 82 } 83 } 84 85 return $packagesByType; 86 } 87 88 /** 89 * Checks whether the given package is installed 90 * 91 * This also returns true if the package name is provided or replaced by another package 92 * 93 * @param string $packageName 94 * @param bool $includeDevRequirements 95 * @return bool 96 */ 97 public static function isInstalled($packageName, $includeDevRequirements = true) 98 { 99 foreach (self::getInstalled() as $installed) { 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 } 103 } 104 105 return false; 106 } 107 108 /** 109 * Checks whether the given package satisfies a version constraint 110 * 111 * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: 112 * 113 * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') 114 * 115 * @param VersionParser $parser Install composer/semver to have access to this class and functionality 116 * @param string $packageName 117 * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package 118 * @return bool 119 */ 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 { 122 $constraint = $parser->parseConstraints($constraint); 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 125 return $provided->matches($constraint); 126 } 127 128 /** 129 * Returns a version constraint representing all the range(s) which are installed for a given package 130 * 131 * It is easier to use this via isInstalled() with the $constraint argument if you need to check 132 * whether a given version of a package is installed, and not just whether it exists 133 * 134 * @param string $packageName 135 * @return string Version constraint usable with composer/semver 136 */ 137 public static function getVersionRanges($packageName) 138 { 139 foreach (self::getInstalled() as $installed) { 140 if (!isset($installed['versions'][$packageName])) { 141 continue; 142 } 143 144 $ranges = array(); 145 if (isset($installed['versions'][$packageName]['pretty_version'])) { 146 $ranges[] = $installed['versions'][$packageName]['pretty_version']; 147 } 148 if (array_key_exists('aliases', $installed['versions'][$packageName])) { 149 $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); 150 } 151 if (array_key_exists('replaced', $installed['versions'][$packageName])) { 152 $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); 153 } 154 if (array_key_exists('provided', $installed['versions'][$packageName])) { 155 $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); 156 } 157 158 return implode(' || ', $ranges); 159 } 160 161 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 162 } 163 164 /** 165 * @param string $packageName 166 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 167 */ 168 public static function getVersion($packageName) 169 { 170 foreach (self::getInstalled() as $installed) { 171 if (!isset($installed['versions'][$packageName])) { 172 continue; 173 } 174 175 if (!isset($installed['versions'][$packageName]['version'])) { 176 return null; 177 } 178 179 return $installed['versions'][$packageName]['version']; 180 } 181 182 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 183 } 184 185 /** 186 * @param string $packageName 187 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 188 */ 189 public static function getPrettyVersion($packageName) 190 { 191 foreach (self::getInstalled() as $installed) { 192 if (!isset($installed['versions'][$packageName])) { 193 continue; 194 } 195 196 if (!isset($installed['versions'][$packageName]['pretty_version'])) { 197 return null; 198 } 199 200 return $installed['versions'][$packageName]['pretty_version']; 201 } 202 203 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 204 } 205 206 /** 207 * @param string $packageName 208 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference 209 */ 210 public static function getReference($packageName) 211 { 212 foreach (self::getInstalled() as $installed) { 213 if (!isset($installed['versions'][$packageName])) { 214 continue; 215 } 216 217 if (!isset($installed['versions'][$packageName]['reference'])) { 218 return null; 219 } 220 221 return $installed['versions'][$packageName]['reference']; 222 } 223 224 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 225 } 226 227 /** 228 * @param string $packageName 229 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. 230 */ 231 public static function getInstallPath($packageName) 232 { 233 foreach (self::getInstalled() as $installed) { 234 if (!isset($installed['versions'][$packageName])) { 235 continue; 236 } 237 238 return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; 239 } 240 241 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 242 } 243 244 /** 245 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 */ 248 public static function getRootPackage() 249 { 250 $installed = self::getInstalled(); 251 252 return $installed[0]['root']; 253 } 254 255 /** 256 * Returns the raw installed.php data for custom implementations 257 * 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 * @return array[] 260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} 261 */ 262 public static function getRawData() 263 { 264 @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); 265 266 if (null === self::$installed) { 267 // only require the installed.php file if this file is loaded from its dumped location, 268 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 269 if (substr(__DIR__, -8, 1) !== 'C') { 270 self::$installed = include __DIR__ . '/installed.php'; 271 } else { 272 self::$installed = array(); 273 } 274 } 275 276 return self::$installed; 277 } 278 279 /** 280 * Returns the raw data of all installed.php which are currently loaded for custom implementations 281 * 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 284 */ 285 public static function getAllRawData() 286 { 287 return self::getInstalled(); 288 } 289 290 /** 291 * Lets you reload the static array from another file 292 * 293 * This is only useful for complex integrations in which a project needs to use 294 * this class but then also needs to execute another project's autoloader in process, 295 * and wants to ensure both projects have access to their version of installed.php. 296 * 297 * A typical case would be PHPUnit, where it would need to make sure it reads all 298 * the data it needs from this class, then call reload() with 299 * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure 300 * the project in which it runs can then also use this class safely, without 301 * interference between PHPUnit's dependencies and the project's dependencies. 302 * 303 * @param array[] $data A vendor/composer/installed.php data set 304 * @return void 305 * 306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data 307 */ 308 public static function reload($data) 309 { 310 self::$installed = $data; 311 self::$installedByVendor = array(); 312 } 313 314 /** 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 317 */ 318 private static function getInstalled() 319 { 320 if (null === self::$canGetVendors) { 321 self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); 322 } 323 324 $installed = array(); 325 326 if (self::$canGetVendors) { 327 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 328 if (isset(self::$installedByVendor[$vendorDir])) { 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 self::$installed = $installed[count($installed) - 1]; 334 } 335 } 336 } 337 } 338 339 if (null === self::$installed) { 340 // only require the installed.php file if this file is loaded from its dumped location, 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 344 } else { 345 self::$installed = array(); 346 } 347 } 348 $installed[] = self::$installed; 349 350 return $installed; 351 } 99 352 } 100 101 102 103 104 105 106 107 108 109 public static function isInstalled($packageName)110 {111 return isset(self::$installed['versions'][$packageName]);112 }113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 public static function satisfies(VersionParser $parser, $packageName, $constraint)128 {129 $constraint = $parser->parseConstraints($constraint);130 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));131 132 return $provided->matches($constraint);133 }134 135 136 137 138 139 140 141 142 143 144 public static function getVersionRanges($packageName)145 {146 if (!isset(self::$installed['versions'][$packageName])) {147 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');148 }149 150 $ranges = array();151 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {152 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];153 }154 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {155 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);156 }157 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {158 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);159 }160 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {161 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);162 }163 164 return implode(' || ', $ranges);165 }166 167 168 169 170 171 public static function getVersion($packageName)172 {173 if (!isset(self::$installed['versions'][$packageName])) {174 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');175 }176 177 if (!isset(self::$installed['versions'][$packageName]['version'])) {178 return null;179 }180 181 return self::$installed['versions'][$packageName]['version'];182 }183 184 185 186 187 188 public static function getPrettyVersion($packageName)189 {190 if (!isset(self::$installed['versions'][$packageName])) {191 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');192 }193 194 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {195 return null;196 }197 198 return self::$installed['versions'][$packageName]['pretty_version'];199 }200 201 202 203 204 205 public static function getReference($packageName)206 {207 if (!isset(self::$installed['versions'][$packageName])) {208 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');209 }210 211 if (!isset(self::$installed['versions'][$packageName]['reference'])) {212 return null;213 }214 215 return self::$installed['versions'][$packageName]['reference'];216 }217 218 219 220 221 222 public static function getRootPackage()223 {224 return self::$installed['root'];225 }226 227 228 229 230 231 232 233 public static function getRawData()234 {235 return self::$installed;236 }237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 public static function reload($data)257 {258 self::$installed = $data;259 }260 } -
acf-rrule-field/tags/1.3.0/vendor/composer/autoload_classmap.php
r2421882 r2980255 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
acf-rrule-field/tags/1.3.0/vendor/composer/autoload_namespaces.php
r2421882 r2980255 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
acf-rrule-field/tags/1.3.0/vendor/composer/autoload_psr4.php
r2421882 r2980255 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 8 8 return array( 9 9 'Recurr\\' => array($vendorDir . '/simshaun/recurr/src/Recurr'), 10 'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib/Doctrine/Common/Collections'), 10 'Doctrine\\Deprecations\\' => array($vendorDir . '/doctrine/deprecations/lib/Doctrine/Deprecations'), 11 'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/src'), 11 12 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'), 12 13 ); -
acf-rrule-field/tags/1.3.0/vendor/composer/autoload_real.php
r2628164 r2980255 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c15 class ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader( );29 spl_autoload_unregister(array('ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader')); 30 30 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::getInitializer($loader)); 52 33 53 34 $loader->register(true); -
acf-rrule-field/tags/1.3.0/vendor/composer/autoload_static.php
r2628164 r2980255 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c17 class ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 14 14 'D' => 15 15 array ( 16 'Doctrine\\Deprecations\\' => 22, 16 17 'Doctrine\\Common\\Collections\\' => 28, 17 18 ), … … 27 28 0 => __DIR__ . '/..' . '/simshaun/recurr/src/Recurr', 28 29 ), 30 'Doctrine\\Deprecations\\' => 31 array ( 32 0 => __DIR__ . '/..' . '/doctrine/deprecations/lib/Doctrine/Deprecations', 33 ), 29 34 'Doctrine\\Common\\Collections\\' => 30 35 array ( 31 0 => __DIR__ . '/..' . '/doctrine/collections/ lib/Doctrine/Common/Collections',36 0 => __DIR__ . '/..' . '/doctrine/collections/src', 32 37 ), 33 38 'Composer\\Installers\\' => … … 44 49 { 45 50 return \Closure::bind(function () use ($loader) { 46 $loader->prefixLengthsPsr4 = ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c1::$prefixLengthsPsr4;47 $loader->prefixDirsPsr4 = ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c1::$prefixDirsPsr4;48 $loader->classMap = ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c1::$classMap;51 $loader->prefixLengthsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixLengthsPsr4; 52 $loader->prefixDirsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixDirsPsr4; 53 $loader->classMap = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$classMap; 49 54 50 55 }, null, ClassLoader::class); -
acf-rrule-field/tags/1.3.0/vendor/composer/installed.json
r2628164 r2980255 157 157 { 158 158 "name": "doctrine/collections", 159 "version": " 1.6.8",160 "version_normalized": " 1.6.8.0",159 "version": "2.1.4", 160 "version_normalized": "2.1.4.0", 161 161 "source": { 162 162 "type": "git", 163 163 "url": "https://github.com/doctrine/collections.git", 164 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af"164 "reference": "72328a11443a0de79967104ad36ba7b30bded134" 165 165 }, 166 166 "dist": { 167 167 "type": "zip", 168 "url": "https://api.github.com/repos/doctrine/collections/zipball/ 1958a744696c6bb3bb0d28db2611dc11610e78af",169 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af",168 "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134", 169 "reference": "72328a11443a0de79967104ad36ba7b30bded134", 170 170 "shasum": "" 171 171 }, 172 172 "require": { 173 "php": "^7.1.3 || ^8.0" 173 "doctrine/deprecations": "^1", 174 "php": "^8.1" 174 175 }, 175 176 "require-dev": { 176 "doctrine/coding-standard": "^9.0", 177 "phpstan/phpstan": "^0.12", 178 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 179 "vimeo/psalm": "^4.2.1" 180 }, 181 "time": "2021-08-10T18:51:53+00:00", 177 "doctrine/coding-standard": "^12", 178 "ext-json": "*", 179 "phpstan/phpstan": "^1.8", 180 "phpstan/phpstan-phpunit": "^1.0", 181 "phpunit/phpunit": "^9.5", 182 "vimeo/psalm": "^5.11" 183 }, 184 "time": "2023-10-03T09:22:33+00:00", 182 185 "type": "library", 183 186 "installation-source": "dist", 184 187 "autoload": { 185 188 "psr-4": { 186 "Doctrine\\Common\\Collections\\": " lib/Doctrine/Common/Collections"189 "Doctrine\\Common\\Collections\\": "src" 187 190 } 188 191 }, … … 223 226 "support": { 224 227 "issues": "https://github.com/doctrine/collections/issues", 225 "source": "https://github.com/doctrine/collections/tree/1.6.8" 226 }, 228 "source": "https://github.com/doctrine/collections/tree/2.1.4" 229 }, 230 "funding": [ 231 { 232 "url": "https://www.doctrine-project.org/sponsorship.html", 233 "type": "custom" 234 }, 235 { 236 "url": "https://www.patreon.com/phpdoctrine", 237 "type": "patreon" 238 }, 239 { 240 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections", 241 "type": "tidelift" 242 } 243 ], 227 244 "install-path": "../doctrine/collections" 228 245 }, 229 246 { 247 "name": "doctrine/deprecations", 248 "version": "1.1.2", 249 "version_normalized": "1.1.2.0", 250 "source": { 251 "type": "git", 252 "url": "https://github.com/doctrine/deprecations.git", 253 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" 254 }, 255 "dist": { 256 "type": "zip", 257 "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 258 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 259 "shasum": "" 260 }, 261 "require": { 262 "php": "^7.1 || ^8.0" 263 }, 264 "require-dev": { 265 "doctrine/coding-standard": "^9", 266 "phpstan/phpstan": "1.4.10 || 1.10.15", 267 "phpstan/phpstan-phpunit": "^1.0", 268 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 269 "psalm/plugin-phpunit": "0.18.4", 270 "psr/log": "^1 || ^2 || ^3", 271 "vimeo/psalm": "4.30.0 || 5.12.0" 272 }, 273 "suggest": { 274 "psr/log": "Allows logging deprecations via PSR-3 logger implementation" 275 }, 276 "time": "2023-09-27T20:04:15+00:00", 277 "type": "library", 278 "installation-source": "dist", 279 "autoload": { 280 "psr-4": { 281 "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" 282 } 283 }, 284 "notification-url": "https://packagist.org/downloads/", 285 "license": [ 286 "MIT" 287 ], 288 "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", 289 "homepage": "https://www.doctrine-project.org/", 290 "support": { 291 "issues": "https://github.com/doctrine/deprecations/issues", 292 "source": "https://github.com/doctrine/deprecations/tree/1.1.2" 293 }, 294 "install-path": "../doctrine/deprecations" 295 }, 296 { 230 297 "name": "simshaun/recurr", 231 "version": "v 4.0.5",232 "version_normalized": " 4.0.5.0",298 "version": "v5.0.2", 299 "version_normalized": "5.0.2.0", 233 300 "source": { 234 301 "type": "git", 235 302 "url": "https://github.com/simshaun/recurr.git", 236 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749"303 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172" 237 304 }, 238 305 "dist": { 239 306 "type": "zip", 240 "url": "https://api.github.com/repos/simshaun/recurr/zipball/ 08b0b46879f598cd11dd42b4c1a9c221a0562749",241 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749",307 "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172", 308 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172", 242 309 "shasum": "" 243 310 }, 244 311 "require": { 245 "doctrine/collections": "~1. 3",246 "php": " >=5.5.0"312 "doctrine/collections": "~1.6||^2.0", 313 "php": "^7.2||^8.0" 247 314 }, 248 315 "require-dev": { 249 "phpunit/phpunit": "~5.7" 250 }, 251 "time": "2021-03-25T23:00:49+00:00", 316 "phpunit/phpunit": "^8.5.16", 317 "symfony/yaml": "^5.3" 318 }, 319 "time": "2023-09-26T20:31:33+00:00", 252 320 "type": "library", 253 321 "extra": { … … 284 352 "support": { 285 353 "issues": "https://github.com/simshaun/recurr/issues", 286 "source": "https://github.com/simshaun/recurr/tree/v 4.0.5"354 "source": "https://github.com/simshaun/recurr/tree/v5.0.2" 287 355 }, 288 356 "install-path": "../simshaun/recurr" -
acf-rrule-field/tags/1.3.0/vendor/composer/installed.php
r2628164 r2980255 1 <?php return array ( 2 'root' => 3 array ( 4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'aliases' => 7 array ( 1 <?php return array( 2 'root' => array( 3 'name' => 'marcbelletre/acf-rrule', 4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '07070b0c9f2875e3824e47a17469651978c96d90', 7 'type' => 'wordpress-plugin', 8 'install_path' => __DIR__ . '/../../', 9 'aliases' => array(), 10 'dev' => true, 8 11 ), 9 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1', 10 'name' => 'marcbelletre/acf-rrule', 11 ), 12 'versions' => 13 array ( 14 'composer/installers' => 15 array ( 16 'pretty_version' => 'v1.12.0', 17 'version' => '1.12.0.0', 18 'aliases' => 19 array ( 20 ), 21 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', 12 'versions' => array( 13 'composer/installers' => array( 14 'pretty_version' => 'v1.12.0', 15 'version' => '1.12.0.0', 16 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', 17 'type' => 'composer-plugin', 18 'install_path' => __DIR__ . '/./installers', 19 'aliases' => array(), 20 'dev_requirement' => false, 21 ), 22 'doctrine/collections' => array( 23 'pretty_version' => '2.1.4', 24 'version' => '2.1.4.0', 25 'reference' => '72328a11443a0de79967104ad36ba7b30bded134', 26 'type' => 'library', 27 'install_path' => __DIR__ . '/../doctrine/collections', 28 'aliases' => array(), 29 'dev_requirement' => false, 30 ), 31 'doctrine/deprecations' => array( 32 'pretty_version' => '1.1.2', 33 'version' => '1.1.2.0', 34 'reference' => '4f2d4f2836e7ec4e7a8625e75c6aa916004db931', 35 'type' => 'library', 36 'install_path' => __DIR__ . '/../doctrine/deprecations', 37 'aliases' => array(), 38 'dev_requirement' => false, 39 ), 40 'marcbelletre/acf-rrule' => array( 41 'pretty_version' => 'dev-master', 42 'version' => 'dev-master', 43 'reference' => '07070b0c9f2875e3824e47a17469651978c96d90', 44 'type' => 'wordpress-plugin', 45 'install_path' => __DIR__ . '/../../', 46 'aliases' => array(), 47 'dev_requirement' => false, 48 ), 49 'roundcube/plugin-installer' => array( 50 'dev_requirement' => false, 51 'replaced' => array( 52 0 => '*', 53 ), 54 ), 55 'shama/baton' => array( 56 'dev_requirement' => false, 57 'replaced' => array( 58 0 => '*', 59 ), 60 ), 61 'simshaun/recurr' => array( 62 'pretty_version' => 'v5.0.2', 63 'version' => '5.0.2.0', 64 'reference' => '1aff62e6e0ee875b3f2487352542605123ee9172', 65 'type' => 'library', 66 'install_path' => __DIR__ . '/../simshaun/recurr', 67 'aliases' => array(), 68 'dev_requirement' => false, 69 ), 22 70 ), 23 'doctrine/collections' =>24 array (25 'pretty_version' => '1.6.8',26 'version' => '1.6.8.0',27 'aliases' =>28 array (29 ),30 'reference' => '1958a744696c6bb3bb0d28db2611dc11610e78af',31 ),32 'marcbelletre/acf-rrule' =>33 array (34 'pretty_version' => 'dev-master',35 'version' => 'dev-master',36 'aliases' =>37 array (38 ),39 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1',40 ),41 'roundcube/plugin-installer' =>42 array (43 'replaced' =>44 array (45 0 => '*',46 ),47 ),48 'shama/baton' =>49 array (50 'replaced' =>51 array (52 0 => '*',53 ),54 ),55 'simshaun/recurr' =>56 array (57 'pretty_version' => 'v4.0.5',58 'version' => '4.0.5.0',59 'aliases' =>60 array (61 ),62 'reference' => '08b0b46879f598cd11dd42b4c1a9c221a0562749',63 ),64 ),65 71 ); -
acf-rrule-field/tags/1.3.0/vendor/composer/platform_check.php
r2489893 r2980255 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70103)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.3". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 80100)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/CONTRIBUTING.md
r2581616 r2980255 6 6 These guidelines exist not to annoy you, but to keep the code base clean, 7 7 unified and future proof. 8 9 ## We only accept PRs to "master"10 11 Our branching strategy is "everything to master first", even12 bugfixes and we then merge them into the stable branches. You should only13 open pull requests against the master branch. Otherwise we cannot accept the PR.14 15 There is one exception to the rule, when we merged a bug into some stable branches16 we do occasionally accept pull requests that merge the same bug fix into earlier17 branches.18 8 19 9 ## Coding Standard -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/README.md
r2581616 r2980255 2 2 3 3 [](https://github.com/doctrine/collections/actions) 4 [](https://codecov.io/gh/doctrine/collections/branch/master)4 [](https://codecov.io/gh/doctrine/collections/branch/2.0.x) 5 5 6 6 Collections Abstraction library 7 8 ## Changelog9 10 ### v1.6.111 12 This release, combined with the release of [`doctrine/collections` `v1.6.1`](https://github.com/doctrine/collections/releases/tag/v1.6.1),13 fixes an issue where parsing annotations was not possible14 for classes within `doctrine/collections`.15 16 Specifically, `v1.6.0` introduced Psalm-specific annotations17 such as (for example) `@template` and `@template-implements`,18 which were both incorrectly recognized as `@template`.19 20 `@template` has therefore been removed, and instead we use21 the prefixed `@psalm-template`, which is no longer parsed22 by `doctrine/collections` `v1.6.1`23 24 Total issues resolved: **1**25 26 - [186: Use `@psalm-template` annotation to avoid clashes](https://github.com/doctrine/collections/pull/186) thanks to @muglug27 28 ### v1.6.029 30 This release bumps the minimum required PHP version to 7.1.3.31 32 Following improvements were introduced:33 34 * `ArrayCollection#filter()` now allows filtering by key, value or both.35 * When using the `ClosureExpressionVisitor` over objects with a defined36 accessor and property, the accessor is prioritised.37 * Updated testing tools and coding standards, autoloading, which also38 led to marginal performance improvements39 * Introduced generic type docblock declarations from [psalm](https://github.com/vimeo/psalm),40 which should allow users to declare `/** @var Collection<KeyType, ValueType> */`41 in their code, and leverage the type propagation deriving from that.42 43 Total issues resolved: **16**44 45 - [127: Use PSR-4](https://github.com/doctrine/collections/pull/127) thanks to @Nyholm46 - [129: Remove space in method declaration](https://github.com/doctrine/collections/pull/129) thanks to @bounoable47 - [130: Update build to add PHPCS and PHPStan](https://github.com/doctrine/collections/pull/130) thanks to @lcobucci48 - [131: ClosureExpressionVisitor > Don't duplicate the accessor when the field already starts with it](https://github.com/doctrine/collections/pull/131) thanks to @ruudk49 - [139: Apply Doctrine CS 2.1](https://github.com/doctrine/collections/pull/139) thanks to @Majkl57850 - [142: CS 4.0, version composer.lock, merge stages](https://github.com/doctrine/collections/pull/142) thanks to @Majkl57851 - [144: Update to PHPUnit 7](https://github.com/doctrine/collections/pull/144) thanks to @carusogabriel52 - [146: Update changelog for v1.4.0 and v1.5.0](https://github.com/doctrine/collections/pull/146) thanks to @GromNaN53 - [154: Update index.rst](https://github.com/doctrine/collections/pull/154) thanks to @chraiet54 - [158: Extract Selectable method into own documentation section](https://github.com/doctrine/collections/pull/158) thanks to @SenseException55 - [160: Update homepage](https://github.com/doctrine/collections/pull/160) thanks to @Majkl57856 - [165: Allow `ArrayCollection#filter()` to filter by key, value or both](https://github.com/doctrine/collections/issues/165) thanks to @0x13a57 - [167: Allow `ArrayCollection#filter()` to filter by key and also value](https://github.com/doctrine/collections/pull/167) thanks to @0x13a58 - [175: CI: Test against PHP 7.4snapshot instead of nightly (8.0)](https://github.com/doctrine/collections/pull/175) thanks to @Majkl57859 - [177: Generify collections using Psalm](https://github.com/doctrine/collections/pull/177) thanks to @nschoellhorn60 - [178: Updated doctrine/coding-standard to 6.0](https://github.com/doctrine/collections/pull/178) thanks to @patrickjahns61 62 ### v1.5.063 64 * [Require PHP 7.1+](https://github.com/doctrine/collections/pull/105)65 * [Drop HHVM support](https://github.com/doctrine/collections/pull/118)66 67 ### v1.4.068 69 * [Require PHP 5.6+](https://github.com/doctrine/collections/pull/105)70 * [Add `ArrayCollection::createFrom()`](https://github.com/doctrine/collections/pull/91)71 * [Support non-camel-case naming](https://github.com/doctrine/collections/pull/57)72 * [Comparison `START_WITH`, `END_WITH`](https://github.com/doctrine/collections/pull/78)73 * [Comparison `MEMBER_OF`](https://github.com/doctrine/collections/pull/66)74 * [Add Contributing guide](https://github.com/doctrine/collections/pull/103)75 76 ### v1.3.077 78 * [Explicit casting of first and max results in criteria API](https://github.com/doctrine/collections/pull/26)79 * [Keep keys when using `ArrayCollection#matching()` with sorting](https://github.com/doctrine/collections/pull/49)80 * [Made `AbstractLazyCollection#$initialized` protected for extensibility](https://github.com/doctrine/collections/pull/52)81 82 ### v1.2.083 84 * Add a new ``AbstractLazyCollection``85 86 ### v1.1.087 88 * Deprecated ``Comparison::IS``, because it's only there for SQL semantics.89 These are fixed in the ORM instead.90 * Add ``Comparison::CONTAINS`` to perform partial string matches:91 92 $criteria->andWhere($criteria->expr()->contains('property', 'Foo')); -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/composer.json
r2581616 r2980255 1 1 { 2 2 "name": "doctrine/collections", 3 "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.", 4 "license": "MIT", 3 5 "type": "library", 4 "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.",5 6 "keywords": [ 6 7 "php", … … 9 10 "iterators" 10 11 ], 12 "authors": [ 13 { 14 "name": "Guilherme Blanco", 15 "email": "[email protected]" 16 }, 17 { 18 "name": "Roman Borschel", 19 "email": "[email protected]" 20 }, 21 { 22 "name": "Benjamin Eberlei", 23 "email": "[email protected]" 24 }, 25 { 26 "name": "Jonathan Wage", 27 "email": "[email protected]" 28 }, 29 { 30 "name": "Johannes Schmitt", 31 "email": "[email protected]" 32 } 33 ], 11 34 "homepage": "https://www.doctrine-project.org/projects/collections.html", 12 "license": "MIT",13 "authors": [14 {"name": "Guilherme Blanco", "email": "[email protected]"},15 {"name": "Roman Borschel", "email": "[email protected]"},16 {"name": "Benjamin Eberlei", "email": "[email protected]"},17 {"name": "Jonathan Wage", "email": "[email protected]"},18 {"name": "Johannes Schmitt", "email": "[email protected]"}19 ],20 35 "require": { 21 "php": "^7.1.3 || ^8.0" 36 "php": "^8.1", 37 "doctrine/deprecations": "^1" 22 38 }, 23 39 "require-dev": { 24 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 25 "doctrine/coding-standard": "^9.0", 26 "phpstan/phpstan": "^0.12", 27 "vimeo/psalm": "^4.2.1" 40 "ext-json": "*", 41 "doctrine/coding-standard": "^12", 42 "phpstan/phpstan": "^1.8", 43 "phpstan/phpstan-phpunit": "^1.0", 44 "phpunit/phpunit": "^9.5", 45 "vimeo/psalm": "^5.11" 28 46 }, 29 47 "autoload": { 30 "psr-4": { "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections" } 48 "psr-4": { 49 "Doctrine\\Common\\Collections\\": "src" 50 } 31 51 }, 32 52 "autoload-dev": { 33 53 "psr-4": { 34 "Doctrine\\Tests\\": "tests/Doctrine/Tests" 54 "Doctrine\\Tests\\": "tests" 55 } 56 }, 57 "config": { 58 "allow-plugins": { 59 "composer/package-versions-deprecated": true, 60 "dealerdirect/phpcodesniffer-composer-installer": true 35 61 } 36 62 } -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/expression-builder.rst
r2421882 r2980255 39 39 $expressionBuilder->eq('foo', 1), 40 40 $expressionBuilder->eq('bar', 1) 41 ); 42 43 $collection->matching(new Criteria($expression)); 44 45 not 46 --- 47 48 .. code-block:: php 49 $expressionBuilder = Criteria::expr(); 50 51 $expression = $expressionBuilder->not( 52 $expressionBuilder->eq('foo', 1) 41 53 ); 42 54 -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/expressions.rst
r2421882 r2980255 3 3 4 4 The ``Doctrine\Common\Collections\Expr\Comparison`` class 5 can be used to create expressions to be used with the5 can be used to create comparison expressions to be used with the 6 6 ``Doctrine\Common\Collections\Criteria`` class. It has the 7 7 following operator constants: … … 20 20 - ``Comparison::STARTS_WITH`` 21 21 - ``Comparison::ENDS_WITH`` 22 23 The ``Doctrine\Common\Collections\Expr\CompositeExpression`` class 24 can be used to create composite expressions to be used with the 25 ``Doctrine\Common\Collections\Criteria`` class. It has the 26 following operator constants: 27 28 - ``CompositeExpression::TYPE_AND`` 29 - ``CompositeExpression::TYPE_OR`` 30 - ``CompositeExpression::TYPE_NOT`` 31 32 When using the ``TYPE_OR`` and ``TYPE_AND`` operators the 33 ``CompositeExpression`` accepts multiple expressions as parameter 34 but only one expression can be provided when using the ``NOT`` operator. 22 35 23 36 The ``Doctrine\Common\Collections\Criteria`` class has the following -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/index.rst
r2581616 r2980255 33 33 of the collection being at a certain position unless you explicitly positioned it before. 34 34 35 Methods that do not alter the collection or have template types 36 appearing in invariant or contravariant positions are not directly 37 defined in ``Doctrine\Common\Collections\Collection``, but are inherited 38 from the ``Doctrine\Common\Collections\ReadableCollection`` interface. 39 35 40 The methods available on the interface are: 36 41 … … 149 154 }); // true 150 155 156 findFirst 157 --------- 158 159 Returns the first element of this collection that satisfies the given predicate. 160 161 .. code-block:: php 162 $collection = new Collection([1, 2, 3, 2, 1]); 163 164 $one = $collection->findFirst(function(int $key, int $value): bool { 165 return $value > 2 && $key > 1; 166 }); // 3 167 151 168 filter 152 169 ------ … … 217 234 return $value + 1; 218 235 }); // [2, 3, 4] 236 237 reduce 238 ------ 239 240 Applies iteratively the given function to each element in the collection, so as to reduce the collection to a single value. 241 242 .. code-block:: php 243 $collection = new ArrayCollection([1, 2, 3]); 244 245 $reduce = $collection->reduce(function(int $accumulator, int $value): int { 246 return $accumulator + $value; 247 }, 0); // 6 219 248 220 249 next … … 303 332 304 333 Selects all elements from a selectable that match the expression and 305 returns a new collection containing these elements .334 returns a new collection containing these elements and preserved keys. 306 335 307 336 .. code-block:: php … … 310 339 311 340 $collection = new ArrayCollection([ 312 [341 'wage' => [ 313 342 'name' => 'jwage', 314 343 ], 315 [344 'roman' => [ 316 345 'name' => 'romanb', 317 346 ], … … 324 353 $criteria->where($expr); 325 354 326 $match ed = $collection->matching($criteria); // ['jwage']355 $matchingCollection = $collection->matching($criteria); // [ 'wage' => [ 'name' => 'jwage' ]] 327 356 328 357 You can read more about expressions :ref:`here <expressions>`. -
acf-rrule-field/tags/1.3.0/vendor/doctrine/collections/docs/en/sidebar.rst
r2421882 r2980255 7 7 derived-collections 8 8 lazy-collections 9 serialization -
acf-rrule-field/tags/1.3.0/vendor/simshaun/recurr/README.md
r2421882 r2980255 1 # Recurr [](https://travis-ci.org/simshaun/recurr.png) [](https://packagist.org/packages/simshaun/recurr) [](https://packagist.org/packages/simshaun/recurr) [](https://packagist.org/packages/simshaun/recurr) [](https://packagist.org/packages/simshaun/recurr) 1 # Recurr 2 3 [](https://github.com/simshaun/recurr/actions) 4 [](https://packagist.org/packages/simshaun/recurr) 5 [](https://packagist.org/packages/simshaun/recurr) 6 [](https://packagist.org/packages/simshaun/recurr) 7 [](https://packagist.org/packages/simshaun/recurr) 2 8 3 9 Recurr is a PHP library for working with recurrence rules ([RRULE](https://tools.ietf.org/html/rfc5545)) and converting them in to DateTime objects. … … 10 16 The recommended way to install Recurr is through [Composer](http://getcomposer.org). 11 17 12 `composer require simshaun/recurr` 18 ```bash 19 composer require simshaun/recurr 20 ``` 13 21 14 22 Using Recurr … … 154 162 ------- 155 163 156 Recurr is licensed under the MIT License. See the LICENSEfile for details.164 Recurr is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details. -
acf-rrule-field/tags/1.3.0/vendor/simshaun/recurr/composer.json
r2525762 r2980255 14 14 ], 15 15 "require": { 16 "php": " >=5.5.0",17 "doctrine/collections": "~1. 3"16 "php": "^7.2||^8.0", 17 "doctrine/collections": "~1.6||^2.0" 18 18 }, 19 19 "require-dev": { 20 "phpunit/phpunit": "~5.7" 20 "phpunit/phpunit": "^8.5.16", 21 "symfony/yaml": "^5.3" 21 22 }, 22 23 "autoload": { … … 34 35 "dev-master": "0.x-dev" 35 36 } 37 }, 38 "scripts": { 39 "test": "./vendor/bin/phpunit --color=always" 36 40 } 37 41 } -
acf-rrule-field/trunk/acf-rrule.php
r2814099 r2980255 5 5 Plugin URI: https://github.com/marcbelletre/acf-rrule 6 6 Description: Create recurring rules with a single ACF field 7 Version: 1. 2.57 Version: 1.3.0 8 8 Author: Marc Bellêtre 9 9 Author URI: https://pixelparfait.fr … … 45 45 // - these will be passed into the field class. 46 46 $this->settings = [ 47 'version' => '1. 2.5',47 'version' => '1.3.0', 48 48 'url' => plugin_dir_url(__FILE__), 49 49 'path' => plugin_dir_path(__FILE__), -
acf-rrule-field/trunk/composer.json
r2421882 r2980255 1 1 { 2 "name": "marcbelletre/acf-rrule", 3 "description": "RRule field for Advanced Custom Fields", 4 "type": "wordpress-plugin", 5 "keywords": ["acf", "rrule", "recurring", "date"], 6 "license": "MIT", 7 "authors": [ 8 { 9 "name": "Marc Bellêtre", 10 "email": "[email protected]", 11 "homepage": "https://pixelparfait.fr" 12 } 13 ], 14 "support": { 15 "issues": "https://github.com/marcbelletre/acf-rrule/issues" 16 }, 17 "require": { 18 "simshaun/recurr": "^4.0", 19 "composer/installers": "~1.0" 2 "name": "marcbelletre/acf-rrule", 3 "description": "RRule field for Advanced Custom Fields", 4 "type": "wordpress-plugin", 5 "keywords": [ 6 "acf", 7 "rrule", 8 "recurring", 9 "date" 10 ], 11 "license": "MIT", 12 "authors": [ 13 { 14 "name": "Marc Bellêtre", 15 "email": "[email protected]", 16 "homepage": "https://pixelparfait.fr" 20 17 } 18 ], 19 "support": { 20 "issues": "https://github.com/marcbelletre/acf-rrule/issues" 21 }, 22 "require": { 23 "simshaun/recurr": "^5.0", 24 "composer/installers": "~1.0" 25 }, 26 "config": { 27 "allow-plugins": { 28 "composer/installers": true 29 } 30 } 21 31 } -
acf-rrule-field/trunk/composer.lock
r2628164 r2980255 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " c30f9a9a5de399f90436768128439030",7 "content-hash": "b1dba48b1733046ff32a3a88e9019555", 8 8 "packages": [ 9 9 { … … 160 160 { 161 161 "name": "doctrine/collections", 162 "version": " 1.6.8",162 "version": "2.1.4", 163 163 "source": { 164 164 "type": "git", 165 165 "url": "https://github.com/doctrine/collections.git", 166 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af"166 "reference": "72328a11443a0de79967104ad36ba7b30bded134" 167 167 }, 168 168 "dist": { 169 169 "type": "zip", 170 "url": "https://api.github.com/repos/doctrine/collections/zipball/ 1958a744696c6bb3bb0d28db2611dc11610e78af",171 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af",170 "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134", 171 "reference": "72328a11443a0de79967104ad36ba7b30bded134", 172 172 "shasum": "" 173 173 }, 174 174 "require": { 175 "php": "^7.1.3 || ^8.0" 175 "doctrine/deprecations": "^1", 176 "php": "^8.1" 176 177 }, 177 178 "require-dev": { 178 "doctrine/coding-standard": "^9.0", 179 "phpstan/phpstan": "^0.12", 180 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 181 "vimeo/psalm": "^4.2.1" 179 "doctrine/coding-standard": "^12", 180 "ext-json": "*", 181 "phpstan/phpstan": "^1.8", 182 "phpstan/phpstan-phpunit": "^1.0", 183 "phpunit/phpunit": "^9.5", 184 "vimeo/psalm": "^5.11" 182 185 }, 183 186 "type": "library", 184 187 "autoload": { 185 188 "psr-4": { 186 "Doctrine\\Common\\Collections\\": " lib/Doctrine/Common/Collections"189 "Doctrine\\Common\\Collections\\": "src" 187 190 } 188 191 }, … … 223 226 "support": { 224 227 "issues": "https://github.com/doctrine/collections/issues", 225 "source": "https://github.com/doctrine/collections/tree/1.6.8" 226 }, 227 "time": "2021-08-10T18:51:53+00:00" 228 "source": "https://github.com/doctrine/collections/tree/2.1.4" 229 }, 230 "funding": [ 231 { 232 "url": "https://www.doctrine-project.org/sponsorship.html", 233 "type": "custom" 234 }, 235 { 236 "url": "https://www.patreon.com/phpdoctrine", 237 "type": "patreon" 238 }, 239 { 240 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections", 241 "type": "tidelift" 242 } 243 ], 244 "time": "2023-10-03T09:22:33+00:00" 245 }, 246 { 247 "name": "doctrine/deprecations", 248 "version": "1.1.2", 249 "source": { 250 "type": "git", 251 "url": "https://github.com/doctrine/deprecations.git", 252 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" 253 }, 254 "dist": { 255 "type": "zip", 256 "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 257 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 258 "shasum": "" 259 }, 260 "require": { 261 "php": "^7.1 || ^8.0" 262 }, 263 "require-dev": { 264 "doctrine/coding-standard": "^9", 265 "phpstan/phpstan": "1.4.10 || 1.10.15", 266 "phpstan/phpstan-phpunit": "^1.0", 267 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 268 "psalm/plugin-phpunit": "0.18.4", 269 "psr/log": "^1 || ^2 || ^3", 270 "vimeo/psalm": "4.30.0 || 5.12.0" 271 }, 272 "suggest": { 273 "psr/log": "Allows logging deprecations via PSR-3 logger implementation" 274 }, 275 "type": "library", 276 "autoload": { 277 "psr-4": { 278 "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" 279 } 280 }, 281 "notification-url": "https://packagist.org/downloads/", 282 "license": [ 283 "MIT" 284 ], 285 "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", 286 "homepage": "https://www.doctrine-project.org/", 287 "support": { 288 "issues": "https://github.com/doctrine/deprecations/issues", 289 "source": "https://github.com/doctrine/deprecations/tree/1.1.2" 290 }, 291 "time": "2023-09-27T20:04:15+00:00" 228 292 }, 229 293 { 230 294 "name": "simshaun/recurr", 231 "version": "v 4.0.5",295 "version": "v5.0.2", 232 296 "source": { 233 297 "type": "git", 234 298 "url": "https://github.com/simshaun/recurr.git", 235 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749"299 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172" 236 300 }, 237 301 "dist": { 238 302 "type": "zip", 239 "url": "https://api.github.com/repos/simshaun/recurr/zipball/ 08b0b46879f598cd11dd42b4c1a9c221a0562749",240 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749",303 "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172", 304 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172", 241 305 "shasum": "" 242 306 }, 243 307 "require": { 244 "doctrine/collections": "~1. 3",245 "php": " >=5.5.0"308 "doctrine/collections": "~1.6||^2.0", 309 "php": "^7.2||^8.0" 246 310 }, 247 311 "require-dev": { 248 "phpunit/phpunit": "~5.7" 312 "phpunit/phpunit": "^8.5.16", 313 "symfony/yaml": "^5.3" 249 314 }, 250 315 "type": "library", … … 281 346 "support": { 282 347 "issues": "https://github.com/simshaun/recurr/issues", 283 "source": "https://github.com/simshaun/recurr/tree/v 4.0.5"284 }, 285 "time": "202 1-03-25T23:00:49+00:00"348 "source": "https://github.com/simshaun/recurr/tree/v5.0.2" 349 }, 350 "time": "2023-09-26T20:31:33+00:00" 286 351 } 287 352 ], … … 294 359 "platform": [], 295 360 "platform-dev": [], 296 "plugin-api-version": "2. 0.0"361 "plugin-api-version": "2.3.0" 297 362 } -
acf-rrule-field/trunk/fields/class-acf-field-rrule.php
r2814099 r2980255 1 1 <?php 2 2 3 use \Recurr\Rule;3 use Recurr\Rule; 4 4 5 5 // Exit if accessed directly … … 50 50 */ 51 51 52 $this->defaults = array(52 $this->defaults = [ 53 53 'date_display_format' => 'j F Y', 54 54 'date_return_format' => 'Y-m-d', 55 55 'allow_time' => false, 56 56 'time_display_format' => 'H:i', 57 'time zone' => get_option('timezone_string') ?: 'UTC',58 );57 'time_return_format' => 'H:i', 58 ]; 59 59 60 60 /* … … 107 107 $m_d_Y = date_i18n('m/d/Y'); 108 108 $F_j_Y = date_i18n('F j, Y'); 109 $g_i_a = date_i18n('g:i a'); 110 $H_i = date_i18n('H:i'); 109 111 $Ymd = date_i18n('Ymd'); 110 112 111 // Display format 112 acf_render_field_setting($field, array( 113 'label' => __('Date Display Format', 'acf-rrule-field'), 114 'instructions' => __('The date format displayed when editing a post', 'acf-rrule-field'), 115 'type' => 'radio', 116 'name' => 'date_display_format', 117 'other_choice' => 1, 118 'choices' => array( 119 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 120 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 121 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 122 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>' 123 ) 124 )); 125 126 // Return format 127 acf_render_field_setting($field, array( 128 'label' => __('Date Return Format', 'acf-rrule-field'), 129 'instructions' => __('The date format returned via template functions', 'acf-rrule-field'), 130 'type' => 'radio', 131 'name' => 'return_format', 132 'other_choice' => 1, 133 'choices' => array( 134 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 135 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 136 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 137 'Ymd' => '<span>' . $Ymd . '</span><code>Ymd</code>', 138 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>' 139 ) 140 )); 113 echo '<div class="acf-field-settings-split">'; 114 115 // Date display format 116 acf_render_field_setting($field, [ 117 'label' => __('Date Display Format', 'acf-rrule-field'), 118 'instructions' => __('The date format displayed when editing a post', 'acf-rrule-field'), 119 'type' => 'radio', 120 'name' => 'date_display_format', 121 'other_choice' => 1, 122 'choices' => [ 123 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 124 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 125 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 126 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 127 ], 128 ]); 129 130 // Date return format 131 acf_render_field_setting($field, [ 132 'label' => __('Date Return Format', 'acf-rrule-field'), 133 'instructions' => __('The date format returned via template functions', 'acf-rrule-field'), 134 'type' => 'radio', 135 'name' => 'date_return_format', 136 'other_choice' => 1, 137 'choices' => [ 138 'd/m/Y' => '<span>' . $d_m_Y . '</span><code>d/m/Y</code>', 139 'm/d/Y' => '<span>' . $m_d_Y . '</span><code>m/d/Y</code>', 140 'F j, Y' => '<span>' . $F_j_Y . '</span><code>F j, Y</code>', 141 'Ymd' => '<span>' . $Ymd . '</span><code>Ymd</code>', 142 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 143 ], 144 ]); 145 146 echo '</div>'; 147 148 echo '<div class="acf-field-settings-split">'; 141 149 142 150 // Allow time selector 143 acf_render_field_setting($field, array( 144 'label' => __('Time Selector', 'acf-rrule-field'), 145 'instructions' => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'), 146 'name' => 'allow_time', 147 'type' => 'true_false', 148 'ui' => 1, 149 )); 151 acf_render_field_setting($field, [ 152 'label' => __('Time Selector', 'acf-rrule-field'), 153 'instructions' => __('Allow time selection when creating the recurring rule', 'acf-rrule-field'), 154 'name' => 'allow_time', 155 'type' => 'true_false', 156 'ui' => 1, 157 ]); 158 159 echo '</div>'; 160 161 echo '<div class="acf-field-settings-split">'; 162 163 // Time display format 164 acf_render_field_setting($field, [ 165 'label' => __('Time Display Format', 'acf-rrule-field'), 166 'instructions' => __('The time format displayed when editing a post', 'acf-rrule-field'), 167 'type' => 'radio', 168 'name' => 'time_display_format', 169 'other_choice' => 1, 170 'choices' => [ 171 'H:i' => '<span>' . $H_i . '</span><code>H:i</code>', 172 'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>', 173 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 174 ], 175 'conditions' => [ 176 'field' => 'allow_time', 177 'operator' => '==', 178 'value' => 1 179 ], 180 ]); 181 182 // Time return format 183 acf_render_field_setting($field, [ 184 'label' => __('Time Return Format', 'acf-rrule-field'), 185 'instructions' => __('The time format returned via template functions', 'acf-rrule-field'), 186 'type' => 'radio', 187 'name' => 'time_return_format', 188 'other_choice' => 1, 189 'choices' => [ 190 'H:i' => '<span>' . $H_i . '</span><code>H:i</code>', 191 'g:i a' => '<span>' . $g_i_a . '</span><code>g:i a</code>', 192 'other' => '<span>' . __('Custom:', 'acf-rrule-field') . '</span>', 193 ], 194 'conditions' => [ 195 'field' => 'allow_time', 196 'operator' => '==', 197 'value' => 1 198 ], 199 ]); 200 201 echo '</div>'; 150 202 } 151 152 203 153 204 /* … … 172 223 173 224 // Datepicker options 174 $datepicker_options = array(225 $datepicker_options = [ 175 226 'class' => 'acf-date-picker acf-input-wrap', 176 227 'data-date_format' => acf_convert_date_to_js($field['date_display_format']), 177 );178 $timepicker_options = array(228 ]; 229 $timepicker_options = [ 179 230 'class' => 'acf-time-picker acf-input-wrap', 180 ); ?> 231 'data-time_format' => acf_convert_time_to_js($field['time_display_format']), 232 ]; ?> 181 233 182 234 <div class="acf-input-wrap"> … … 185 237 <?php if ($field['value'] && $field['value']['text']) : ?> 186 238 <p class="acf-field-rrule-current"> 187 <?php _e('Current value:', 'acf-rrule-field'); ?> <?= $field['value']['text'] ?> 239 <?php _e('Current value:', 'acf-rrule-field'); ?> 240 <?= $field['value']['text'] ?> 188 241 </p> 189 242 <?php endif; ?> … … 211 264 </div> 212 265 213 <?php acf_hidden_input( array(266 <?php acf_hidden_input([ 214 267 'name' => $field['name'] . '[start_date]', 215 268 'value' => $start_date_hidden, 216 )); ?>217 <?php acf_text_input( array(269 ]); ?> 270 <?php acf_text_input([ 218 271 'id' => $unique_id . '-start-date', 219 272 'class' => 'input', 220 273 'value' => $start_date_display, 221 )); ?>274 ]); ?> 222 275 </div> 223 276 </div> … … 242 295 </div> 243 296 244 <?php acf_hidden_input( array(297 <?php acf_hidden_input([ 245 298 'name' => $field['name'] . '[start_time]', 246 'value' => $start_time,247 )); ?>248 <?php acf_text_input( array(299 'value' => $start_time, 300 ]); ?> 301 <?php acf_text_input([ 249 302 'id' => $unique_id . '-start-time', 250 303 'class' => 'input', 251 'value' => $start_time,252 )); ?>304 'value' => $start_time, 305 ]); ?> 253 306 </div> 254 307 </div> … … 260 313 <div class="acf-field"> 261 314 <?php 262 $frequency = array(315 $frequency = [ 263 316 'id' => $field['id'] . '-frequency', 264 317 'name' => $field['name'] . '[frequency]', 265 318 'value' => is_array($field['value']) ? $field['value']['frequency'] : null, 266 319 'class' => 'frequency-select', 267 'choices' => array(320 'choices' => [ 268 321 'DAILY' => __('Daily', 'acf-rrule-field'), 269 322 'WEEKLY' => __('Weekly', 'acf-rrule-field'), 270 323 'MONTHLY' => __('Monthly', 'acf-rrule-field'), 271 324 'YEARLY' => __('Yearly', 'acf-rrule-field'), 272 ),273 ); ?>325 ], 326 ]; ?> 274 327 275 328 <div class="acf-label"> … … 286 339 <div class="acf-field"> 287 340 <?php 288 $interval = array(341 $interval = [ 289 342 'id' => $field['id'] . '-interval', 290 343 'name' => $field['name'] . '[interval]', … … 294 347 'min' => 1, 295 348 'step' => 1, 296 ); ?>349 ]; ?> 297 350 298 351 <div class="acf-input"> 299 <div class="acf-input-prepend"><?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?></div> 352 <div class="acf-input-prepend"> 353 <?= _x('Every', 'RRule Interval', 'acf-rrule-field') ?> 354 </div> 300 355 <div class="acf-input-append"> 301 356 <span class="freq-suffix" data-frequency="DAILY"><?= _x('day', 'RRule Interval', 'acf-rrule-field') ?></span> … … 312 367 <div class="acf-field acf-field-button-group" data-type="button_group_multiple" data-frequency="WEEKLY"> 313 368 <?php 314 $weekdays = array(369 $weekdays = [ 315 370 'MO' => __('Monday', 'acf-rrule-field'), 316 371 'TU' => __('Tuesday', 'acf-rrule-field'), … … 320 375 'SA' => __('Saturday', 'acf-rrule-field'), 321 376 'SU' => __('Sunday', 'acf-rrule-field'), 322 ); ?>377 ]; ?> 323 378 324 379 <div class="acf-label"> … … 331 386 <div class="acf-button-group"> 332 387 <?php foreach ($weekdays as $key => $value) : ?> 333 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'] , true); ?>388 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?> 334 389 335 390 <label<?= ($selected ? ' class="selected"' : '') ?>> 336 <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>> <?= $value ?> 391 <input type="checkbox" name="<?= $field['name'] ?>[weekdays][]" value="<?= $key ?>" <?= ($selected ? ' checked' : '') ?>> 392 <?= $value ?> 337 393 </label> 338 394 <?php endforeach; ?> … … 358 414 <tr> 359 415 <?php foreach ($week as $day) : ?> 360 <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays'] , true); ?>416 <?php $selected = is_array($field['value']) && in_array($day, $field['value']['monthdays']); ?> 361 417 362 418 <td> … … 397 453 398 454 if (is_array($field['value']) && is_array($field['value']['bysetpos'])) { 399 $selected = in_array((string) $key, $field['value']['bysetpos'] , true);455 $selected = in_array((string) $key, $field['value']['bysetpos']); 400 456 } ?> 401 457 … … 413 469 <ul class="acf-checkbox-list"> 414 470 <?php foreach ($weekdays as $key => $value) : ?> 415 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays'] , true); ?>471 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['weekdays']); ?> 416 472 417 473 <li> … … 436 492 437 493 <div class="acf-input"> 438 <?php $months = array(494 <?php $months = [ 439 495 '1' => __('January', 'acf-rrule-field'), 440 496 '2' => __('February', 'acf-rrule-field'), … … 449 505 '11' => __('November', 'acf-rrule-field'), 450 506 '12' => __('December', 'acf-rrule-field'), 451 ); ?>507 ]; ?> 452 508 453 509 <input type="hidden" name="<?= $field['name'] ?>[months]"> … … 455 511 <ul class="acf-checkbox-list acf-hl"> 456 512 <?php foreach ($months as $key => $month) : ?> 457 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months'] , true); ?>513 <?php $selected = is_array($field['value']) && in_array($key, $field['value']['months']); ?> 458 514 459 515 <li> … … 475 531 </div> 476 532 <div class="acf-input"> 477 <?php acf_select_input( array(533 <?php acf_select_input([ 478 534 'id' => $field['id'] . '-end-type', 479 535 'name' => $field['name'] . '[end_type]', 480 536 'value' => $field['value'] ? $field['value']['end_type'] : null, 481 537 'class' => 'end-type-select', 482 'choices' => array(538 'choices' => [ 483 539 'date' => __('At a specific date', 'acf-rrule-field'), 484 540 'count' => __('After a number of occurrences', 'acf-rrule-field'), 485 'none' => __('Never', 'acf-rrule-field'),486 ),487 )); ?>541 'none' => __('Never', 'acf-rrule-field'), 542 ], 543 ]); ?> 488 544 </div> 489 545 </div> … … 491 547 <div class="acf-field" data-end-type="count"> 492 548 <?php 493 $occurrence_count = array(549 $occurrence_count = [ 494 550 'id' => $field['id'] . '-occurrence-count', 495 551 'name' => $field['name'] . '[occurrence_count]', 496 552 'type' => 'number', 497 553 'class' => 'acf-is-prepended acf-is-appended', 498 'value' => is_array($field['value']) ? $field['value']['occurrence_count'] : null,554 'value' => is_array($field['value']) ? $field['value']['occurrence_count'] : null, 499 555 'min' => 1, 500 556 'step' => 1, 501 ); ?>557 ]; ?> 502 558 503 559 <div class="acf-input"> 504 <div class="acf-input-prepend"><?php _e('After', 'acf-rrule-field'); ?></div> 505 <div class="acf-input-append"><?php _e('occurrence(s)', 'acf-rrule-field'); ?></div> 560 <div class="acf-input-prepend"> 561 <?php _e('After', 'acf-rrule-field'); ?> 562 </div> 563 <div class="acf-input-append"> 564 <?php _e('occurrence(s)', 'acf-rrule-field'); ?> 565 </div> 506 566 <div class="acf-input-wrap"> 507 567 <?php acf_text_input($occurrence_count); ?> … … 523 583 524 584 <div class="acf-input"> 525 <div class="acf-input-prepend"><?php _e('Until', 'acf-rrule-field'); ?></div> 585 <div class="acf-input-prepend"> 586 <?php _e('Until', 'acf-rrule-field'); ?> 587 </div> 526 588 <div class="acf-input-wrap"> 527 <?php acf_hidden_input( array(589 <?php acf_hidden_input([ 528 590 'name' => $field['name'] . '[end_date]', 529 'value' => $end_date_hidden,530 )); ?>531 <?php acf_text_input( array(591 'value' => $end_date_hidden, 592 ]); ?> 593 <?php acf_text_input([ 532 594 'id' => $unique_id . '-end-date', 533 595 'class' => 'acf-is-prepended', 534 'value' => $end_date_display,535 )); ?>596 'value' => $end_date_display, 597 ]); ?> 536 598 </div> 537 599 </div> … … 560 622 public function input_admin_enqueue_scripts() 561 623 { 562 563 624 // Bail early if no enqueue 564 625 if (!acf_get_setting('enqueue_datepicker')) { … … 569 630 global $wp_locale; 570 631 571 acf_localize_data( array(572 'datePickerL10n' => array(573 'closeText' => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'),574 'currentText' => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'),575 'nextText' => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'),576 'prevText' => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'),577 'weekHeader' => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'),578 'monthNames' => array_values($wp_locale->month),579 'monthNamesShort' => array_values($wp_locale->month_abbrev),580 'dayNames' => array_values($wp_locale->weekday),581 'dayNamesMin' => array_values($wp_locale->weekday_initial),582 'dayNamesShort' => array_values($wp_locale->weekday_abbrev)583 )584 ));632 acf_localize_data([ 633 'datePickerL10n' => [ 634 'closeText' => _x('Done', 'Date Picker JS closeText', 'acf-rrule-field'), 635 'currentText' => _x('Today', 'Date Picker JS currentText', 'acf-rrule-field'), 636 'nextText' => _x('Next', 'Date Picker JS nextText', 'acf-rrule-field'), 637 'prevText' => _x('Prev', 'Date Picker JS prevText', 'acf-rrule-field'), 638 'weekHeader' => _x('Wk', 'Date Picker JS weekHeader', 'acf-rrule-field'), 639 'monthNames' => array_values($wp_locale->month), 640 'monthNamesShort' => array_values($wp_locale->month_abbrev), 641 'dayNames' => array_values($wp_locale->weekday), 642 'dayNamesMin' => array_values($wp_locale->weekday_initial), 643 'dayNamesShort' => array_values($wp_locale->weekday_abbrev), 644 ], 645 ]); 585 646 586 647 // Enqueue scripts … … 588 649 589 650 // Enqueue style 590 wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), array(), '1.11.4');651 wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), [], '1.11.4'); 591 652 592 653 // Init vars … … 595 656 596 657 // Register & include JS 597 wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", array('acf-input'), $version);658 wp_enqueue_script('acf-rrule-field', "{$url}assets/js/input.js", ['acf-input'], $version); 598 659 599 660 // Register & include CSS 600 wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", array('acf-input'), $version);661 wp_enqueue_style('acf-rrule-field', "{$url}assets/css/input.css", ['acf-input'], $version); 601 662 } 602 663 … … 618 679 public function load_value($value, $post_id, $field) 619 680 { 620 $new_value = array(681 $new_value = [ 621 682 'rrule' => null, 622 683 'start_date' => null, … … 624 685 'frequency' => 'WEEKLY', 625 686 'interval' => 1, 626 'weekdays' => array(),627 'monthdays' => array(),628 'months' => array(),687 'weekdays' => [], 688 'monthdays' => [], 689 'months' => [], 629 690 'monthly_by' => 'monthdays', 630 691 'bysetpos' => [], … … 635 696 'dates_collection' => null, 636 697 'text' => null, 637 );698 ]; 638 699 639 700 if ($value) { 701 $timezoneString = get_option('timezone_string') ?: 'UTC'; 702 640 703 try { 641 704 $rule = new Rule($value); 642 705 706 $rule->setTimezone($timezoneString); 707 643 708 $start_date = $rule->getStartDate(); 644 709 645 710 $new_value['rrule'] = $value; 646 $new_value['start_date'] = $start_date ->format('Ymd');647 $new_value['start_time'] = $start_date ->format('H:i:s');711 $new_value['start_date'] = $start_date?->format('Ymd'); 712 $new_value['start_time'] = $start_date?->format('H:i:s'); 648 713 $new_value['frequency'] = $rule->getFreqAsText(); 649 714 $new_value['interval'] = $rule->getInterval(); 650 $new_value['weekdays'] = $rule->getByDay() ?: array();651 $new_value['monthdays'] = $rule->getByMonthDay() ?: array();652 $new_value['months'] = $rule->getByMonth() ?: array();715 $new_value['weekdays'] = $rule->getByDay() ?: []; 716 $new_value['monthdays'] = $rule->getByMonthDay() ?: []; 717 $new_value['months'] = $rule->getByMonth() ?: []; 653 718 654 719 if ($new_value['frequency'] === 'MONTHLY') { 655 if ( sizeof($new_value['weekdays']) > 0) {720 if (count($new_value['weekdays']) > 0) { 656 721 $new_value['monthly_by'] = 'setpos'; 657 722 $set_position = $rule->getBySetPosition(); … … 670 735 ); 671 736 672 $new_value['dates_collection'] = array();737 $new_value['dates_collection'] = []; 673 738 674 739 foreach ($transformer->transform($rule) as $recurrence) { … … 677 742 678 743 if ($rule->getUntil()) { 679 $end_date = $rule->get Until();744 $end_date = $rule->getEndDate() ?: $rule->getUntil(); 680 745 681 746 $new_value['end_type'] = 'date'; … … 720 785 { 721 786 if (is_array($value)) { 722 $start_date = \DateTime::createFromFormat('Ymd', $value['start_date']); 787 $timezoneString = get_option('timezone_string') ?: 'UTC'; 788 $timezone = new \DateTimeZone($timezoneString); 789 790 $start_date = \DateTime::createFromFormat('Ymd', $value['start_date'], $timezone); 723 791 724 792 // Bail early if the DateTime object is null … … 736 804 $rule = new Rule; 737 805 738 // Ensure timezone arg is never blank 739 $timezone = $field['timezone'] ?: $this->defaults['timezone']; 740 741 $rule->setTimezone($timezone) 806 $rule->setTimezone($timezoneString) 742 807 ->setStartDate($start_date, true) 743 808 ->setFreq($value['frequency']) … … 772 837 case 'date': 773 838 if ($value['end_date']) { 774 $end_date = \DateTime::createFromFormat('Ymd', $value['end_date'] );839 $end_date = \DateTime::createFromFormat('Ymd', $value['end_date'], $timezone); 775 840 $end_date->setTime(0, 0, 0); 776 841 777 842 $rule->setUntil($end_date); 843 $rule->setEndDate($end_date); 778 844 } 779 845 -
acf-rrule-field/trunk/readme.txt
r2814099 r2980255 3 3 Tags: acf, rrule, recurrence, date, calendar 4 4 Requires at least: 4.7 5 Tested up to: 6. 15 Tested up to: 6.3 6 6 Requires PHP: 5.6 7 Stable tag: 1. 2.57 Stable tag: 1.3.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 == Changelog == 33 34 = 1.3.0 = 35 * Add time picker options 36 * Fix compatibility with ACF Extended plugin 37 * Fix selection not being reflected in the calendar 33 38 34 39 = 1.2.5 = -
acf-rrule-field/trunk/vendor/autoload.php
r2628164 r2980255 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c1::getLoader();25 return ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59::getLoader(); -
acf-rrule-field/trunk/vendor/composer/ClassLoader.php
r2628164 r2980255 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var self[] 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param ?string $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 113 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 90 * @param array $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param string[]|string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) { 394 return; 395 } 396 397 if ($prepend) { 398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 399 } else { 400 unset(self::$registeredLoaders[$this->vendorDir]); 401 self::$registeredLoaders[$this->vendorDir] = $this; 402 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 478 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories. 480 * 481 * @return self[] 482 */ 483 public static function getRegisteredLoaders() 484 { 485 return self::$registeredLoaders; 486 } 487 488 /** 489 * @param string $class 490 * @param string $ext 491 * @return string|false 492 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
acf-rrule-field/trunk/vendor/composer/InstalledVersions.php
r2628164 r2980255 1 1 <?php 2 2 3 4 5 6 7 8 9 10 11 3 /* 4 * This file is part of Composer. 5 * 6 * (c) Nils Adermann <[email protected]> 7 * Jordi Boggiano <[email protected]> 8 * 9 * For the full copyright and license information, please view the LICENSE 10 * file that was distributed with this source code. 11 */ 12 12 13 13 namespace Composer; 14 14 15 use Composer\Autoload\ClassLoader; 15 16 use Composer\Semver\VersionParser; 16 17 17 18 19 20 21 18 /** 19 * This class is copied in every Composer installed project and available to all 20 * 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 * 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 26 */ 22 27 class InstalledVersions 23 28 { 24 private static $installed = array ( 25 'root' => 26 array ( 27 'pretty_version' => 'dev-master', 28 'version' => 'dev-master', 29 'aliases' => 30 array ( 31 ), 32 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1', 33 'name' => 'marcbelletre/acf-rrule', 34 ), 35 'versions' => 36 array ( 37 'composer/installers' => 38 array ( 39 'pretty_version' => 'v1.12.0', 40 'version' => '1.12.0.0', 41 'aliases' => 42 array ( 43 ), 44 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', 45 ), 46 'doctrine/collections' => 47 array ( 48 'pretty_version' => '1.6.8', 49 'version' => '1.6.8.0', 50 'aliases' => 51 array ( 52 ), 53 'reference' => '1958a744696c6bb3bb0d28db2611dc11610e78af', 54 ), 55 'marcbelletre/acf-rrule' => 56 array ( 57 'pretty_version' => 'dev-master', 58 'version' => 'dev-master', 59 'aliases' => 60 array ( 61 ), 62 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1', 63 ), 64 'roundcube/plugin-installer' => 65 array ( 66 'replaced' => 67 array ( 68 0 => '*', 69 ), 70 ), 71 'shama/baton' => 72 array ( 73 'replaced' => 74 array ( 75 0 => '*', 76 ), 77 ), 78 'simshaun/recurr' => 79 array ( 80 'pretty_version' => 'v4.0.5', 81 'version' => '4.0.5.0', 82 'aliases' => 83 array ( 84 ), 85 'reference' => '08b0b46879f598cd11dd42b4c1a9c221a0562749', 86 ), 87 ), 88 ); 89 90 91 92 93 94 95 96 public static function getInstalledPackages() 97 { 98 return array_keys(self::$installed['versions']); 29 /** 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 */ 33 private static $installed; 34 35 /** 36 * @var bool|null 37 */ 38 private static $canGetVendors; 39 40 /** 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 43 */ 44 private static $installedByVendor = array(); 45 46 /** 47 * Returns a list of all package names which are present, either by being installed, replaced or provided 48 * 49 * @return string[] 50 * @psalm-return list<string> 51 */ 52 public static function getInstalledPackages() 53 { 54 $packages = array(); 55 foreach (self::getInstalled() as $installed) { 56 $packages[] = array_keys($installed['versions']); 57 } 58 59 if (1 === \count($packages)) { 60 return $packages[0]; 61 } 62 63 return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); 64 } 65 66 /** 67 * Returns a list of all package names with a specific type e.g. 'library' 68 * 69 * @param string $type 70 * @return string[] 71 * @psalm-return list<string> 72 */ 73 public static function getInstalledPackagesByType($type) 74 { 75 $packagesByType = array(); 76 77 foreach (self::getInstalled() as $installed) { 78 foreach ($installed['versions'] as $name => $package) { 79 if (isset($package['type']) && $package['type'] === $type) { 80 $packagesByType[] = $name; 81 } 82 } 83 } 84 85 return $packagesByType; 86 } 87 88 /** 89 * Checks whether the given package is installed 90 * 91 * This also returns true if the package name is provided or replaced by another package 92 * 93 * @param string $packageName 94 * @param bool $includeDevRequirements 95 * @return bool 96 */ 97 public static function isInstalled($packageName, $includeDevRequirements = true) 98 { 99 foreach (self::getInstalled() as $installed) { 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 } 103 } 104 105 return false; 106 } 107 108 /** 109 * Checks whether the given package satisfies a version constraint 110 * 111 * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: 112 * 113 * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') 114 * 115 * @param VersionParser $parser Install composer/semver to have access to this class and functionality 116 * @param string $packageName 117 * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package 118 * @return bool 119 */ 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 { 122 $constraint = $parser->parseConstraints($constraint); 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 125 return $provided->matches($constraint); 126 } 127 128 /** 129 * Returns a version constraint representing all the range(s) which are installed for a given package 130 * 131 * It is easier to use this via isInstalled() with the $constraint argument if you need to check 132 * whether a given version of a package is installed, and not just whether it exists 133 * 134 * @param string $packageName 135 * @return string Version constraint usable with composer/semver 136 */ 137 public static function getVersionRanges($packageName) 138 { 139 foreach (self::getInstalled() as $installed) { 140 if (!isset($installed['versions'][$packageName])) { 141 continue; 142 } 143 144 $ranges = array(); 145 if (isset($installed['versions'][$packageName]['pretty_version'])) { 146 $ranges[] = $installed['versions'][$packageName]['pretty_version']; 147 } 148 if (array_key_exists('aliases', $installed['versions'][$packageName])) { 149 $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); 150 } 151 if (array_key_exists('replaced', $installed['versions'][$packageName])) { 152 $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); 153 } 154 if (array_key_exists('provided', $installed['versions'][$packageName])) { 155 $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); 156 } 157 158 return implode(' || ', $ranges); 159 } 160 161 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 162 } 163 164 /** 165 * @param string $packageName 166 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 167 */ 168 public static function getVersion($packageName) 169 { 170 foreach (self::getInstalled() as $installed) { 171 if (!isset($installed['versions'][$packageName])) { 172 continue; 173 } 174 175 if (!isset($installed['versions'][$packageName]['version'])) { 176 return null; 177 } 178 179 return $installed['versions'][$packageName]['version']; 180 } 181 182 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 183 } 184 185 /** 186 * @param string $packageName 187 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 188 */ 189 public static function getPrettyVersion($packageName) 190 { 191 foreach (self::getInstalled() as $installed) { 192 if (!isset($installed['versions'][$packageName])) { 193 continue; 194 } 195 196 if (!isset($installed['versions'][$packageName]['pretty_version'])) { 197 return null; 198 } 199 200 return $installed['versions'][$packageName]['pretty_version']; 201 } 202 203 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 204 } 205 206 /** 207 * @param string $packageName 208 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference 209 */ 210 public static function getReference($packageName) 211 { 212 foreach (self::getInstalled() as $installed) { 213 if (!isset($installed['versions'][$packageName])) { 214 continue; 215 } 216 217 if (!isset($installed['versions'][$packageName]['reference'])) { 218 return null; 219 } 220 221 return $installed['versions'][$packageName]['reference']; 222 } 223 224 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 225 } 226 227 /** 228 * @param string $packageName 229 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. 230 */ 231 public static function getInstallPath($packageName) 232 { 233 foreach (self::getInstalled() as $installed) { 234 if (!isset($installed['versions'][$packageName])) { 235 continue; 236 } 237 238 return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; 239 } 240 241 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 242 } 243 244 /** 245 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 */ 248 public static function getRootPackage() 249 { 250 $installed = self::getInstalled(); 251 252 return $installed[0]['root']; 253 } 254 255 /** 256 * Returns the raw installed.php data for custom implementations 257 * 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 * @return array[] 260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} 261 */ 262 public static function getRawData() 263 { 264 @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); 265 266 if (null === self::$installed) { 267 // only require the installed.php file if this file is loaded from its dumped location, 268 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 269 if (substr(__DIR__, -8, 1) !== 'C') { 270 self::$installed = include __DIR__ . '/installed.php'; 271 } else { 272 self::$installed = array(); 273 } 274 } 275 276 return self::$installed; 277 } 278 279 /** 280 * Returns the raw data of all installed.php which are currently loaded for custom implementations 281 * 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 284 */ 285 public static function getAllRawData() 286 { 287 return self::getInstalled(); 288 } 289 290 /** 291 * Lets you reload the static array from another file 292 * 293 * This is only useful for complex integrations in which a project needs to use 294 * this class but then also needs to execute another project's autoloader in process, 295 * and wants to ensure both projects have access to their version of installed.php. 296 * 297 * A typical case would be PHPUnit, where it would need to make sure it reads all 298 * the data it needs from this class, then call reload() with 299 * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure 300 * the project in which it runs can then also use this class safely, without 301 * interference between PHPUnit's dependencies and the project's dependencies. 302 * 303 * @param array[] $data A vendor/composer/installed.php data set 304 * @return void 305 * 306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data 307 */ 308 public static function reload($data) 309 { 310 self::$installed = $data; 311 self::$installedByVendor = array(); 312 } 313 314 /** 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 317 */ 318 private static function getInstalled() 319 { 320 if (null === self::$canGetVendors) { 321 self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); 322 } 323 324 $installed = array(); 325 326 if (self::$canGetVendors) { 327 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 328 if (isset(self::$installedByVendor[$vendorDir])) { 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 self::$installed = $installed[count($installed) - 1]; 334 } 335 } 336 } 337 } 338 339 if (null === self::$installed) { 340 // only require the installed.php file if this file is loaded from its dumped location, 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 344 } else { 345 self::$installed = array(); 346 } 347 } 348 $installed[] = self::$installed; 349 350 return $installed; 351 } 99 352 } 100 101 102 103 104 105 106 107 108 109 public static function isInstalled($packageName)110 {111 return isset(self::$installed['versions'][$packageName]);112 }113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 public static function satisfies(VersionParser $parser, $packageName, $constraint)128 {129 $constraint = $parser->parseConstraints($constraint);130 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));131 132 return $provided->matches($constraint);133 }134 135 136 137 138 139 140 141 142 143 144 public static function getVersionRanges($packageName)145 {146 if (!isset(self::$installed['versions'][$packageName])) {147 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');148 }149 150 $ranges = array();151 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {152 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];153 }154 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {155 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);156 }157 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {158 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);159 }160 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {161 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);162 }163 164 return implode(' || ', $ranges);165 }166 167 168 169 170 171 public static function getVersion($packageName)172 {173 if (!isset(self::$installed['versions'][$packageName])) {174 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');175 }176 177 if (!isset(self::$installed['versions'][$packageName]['version'])) {178 return null;179 }180 181 return self::$installed['versions'][$packageName]['version'];182 }183 184 185 186 187 188 public static function getPrettyVersion($packageName)189 {190 if (!isset(self::$installed['versions'][$packageName])) {191 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');192 }193 194 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {195 return null;196 }197 198 return self::$installed['versions'][$packageName]['pretty_version'];199 }200 201 202 203 204 205 public static function getReference($packageName)206 {207 if (!isset(self::$installed['versions'][$packageName])) {208 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');209 }210 211 if (!isset(self::$installed['versions'][$packageName]['reference'])) {212 return null;213 }214 215 return self::$installed['versions'][$packageName]['reference'];216 }217 218 219 220 221 222 public static function getRootPackage()223 {224 return self::$installed['root'];225 }226 227 228 229 230 231 232 233 public static function getRawData()234 {235 return self::$installed;236 }237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 public static function reload($data)257 {258 self::$installed = $data;259 }260 } -
acf-rrule-field/trunk/vendor/composer/autoload_classmap.php
r2421882 r2980255 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
acf-rrule-field/trunk/vendor/composer/autoload_namespaces.php
r2421882 r2980255 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
acf-rrule-field/trunk/vendor/composer/autoload_psr4.php
r2421882 r2980255 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 8 8 return array( 9 9 'Recurr\\' => array($vendorDir . '/simshaun/recurr/src/Recurr'), 10 'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib/Doctrine/Common/Collections'), 10 'Doctrine\\Deprecations\\' => array($vendorDir . '/doctrine/deprecations/lib/Doctrine/Deprecations'), 11 'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/src'), 11 12 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'), 12 13 ); -
acf-rrule-field/trunk/vendor/composer/autoload_real.php
r2628164 r2980255 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c15 class ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader( );29 spl_autoload_unregister(array('ComposerAutoloaderInit f113c85c4bf87a05ceb34ca0b0cd94c1', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInitc35fcbe54628f3a3a961b0147fa06c59', 'loadClassLoader')); 30 30 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInitf113c85c4bf87a05ceb34ca0b0cd94c1::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::getInitializer($loader)); 52 33 53 34 $loader->register(true); -
acf-rrule-field/trunk/vendor/composer/autoload_static.php
r2628164 r2980255 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c17 class ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 14 14 'D' => 15 15 array ( 16 'Doctrine\\Deprecations\\' => 22, 16 17 'Doctrine\\Common\\Collections\\' => 28, 17 18 ), … … 27 28 0 => __DIR__ . '/..' . '/simshaun/recurr/src/Recurr', 28 29 ), 30 'Doctrine\\Deprecations\\' => 31 array ( 32 0 => __DIR__ . '/..' . '/doctrine/deprecations/lib/Doctrine/Deprecations', 33 ), 29 34 'Doctrine\\Common\\Collections\\' => 30 35 array ( 31 0 => __DIR__ . '/..' . '/doctrine/collections/ lib/Doctrine/Common/Collections',36 0 => __DIR__ . '/..' . '/doctrine/collections/src', 32 37 ), 33 38 'Composer\\Installers\\' => … … 44 49 { 45 50 return \Closure::bind(function () use ($loader) { 46 $loader->prefixLengthsPsr4 = ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c1::$prefixLengthsPsr4;47 $loader->prefixDirsPsr4 = ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c1::$prefixDirsPsr4;48 $loader->classMap = ComposerStaticInit f113c85c4bf87a05ceb34ca0b0cd94c1::$classMap;51 $loader->prefixLengthsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixLengthsPsr4; 52 $loader->prefixDirsPsr4 = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$prefixDirsPsr4; 53 $loader->classMap = ComposerStaticInitc35fcbe54628f3a3a961b0147fa06c59::$classMap; 49 54 50 55 }, null, ClassLoader::class); -
acf-rrule-field/trunk/vendor/composer/installed.json
r2628164 r2980255 157 157 { 158 158 "name": "doctrine/collections", 159 "version": " 1.6.8",160 "version_normalized": " 1.6.8.0",159 "version": "2.1.4", 160 "version_normalized": "2.1.4.0", 161 161 "source": { 162 162 "type": "git", 163 163 "url": "https://github.com/doctrine/collections.git", 164 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af"164 "reference": "72328a11443a0de79967104ad36ba7b30bded134" 165 165 }, 166 166 "dist": { 167 167 "type": "zip", 168 "url": "https://api.github.com/repos/doctrine/collections/zipball/ 1958a744696c6bb3bb0d28db2611dc11610e78af",169 "reference": " 1958a744696c6bb3bb0d28db2611dc11610e78af",168 "url": "https://api.github.com/repos/doctrine/collections/zipball/72328a11443a0de79967104ad36ba7b30bded134", 169 "reference": "72328a11443a0de79967104ad36ba7b30bded134", 170 170 "shasum": "" 171 171 }, 172 172 "require": { 173 "php": "^7.1.3 || ^8.0" 173 "doctrine/deprecations": "^1", 174 "php": "^8.1" 174 175 }, 175 176 "require-dev": { 176 "doctrine/coding-standard": "^9.0", 177 "phpstan/phpstan": "^0.12", 178 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 179 "vimeo/psalm": "^4.2.1" 180 }, 181 "time": "2021-08-10T18:51:53+00:00", 177 "doctrine/coding-standard": "^12", 178 "ext-json": "*", 179 "phpstan/phpstan": "^1.8", 180 "phpstan/phpstan-phpunit": "^1.0", 181 "phpunit/phpunit": "^9.5", 182 "vimeo/psalm": "^5.11" 183 }, 184 "time": "2023-10-03T09:22:33+00:00", 182 185 "type": "library", 183 186 "installation-source": "dist", 184 187 "autoload": { 185 188 "psr-4": { 186 "Doctrine\\Common\\Collections\\": " lib/Doctrine/Common/Collections"189 "Doctrine\\Common\\Collections\\": "src" 187 190 } 188 191 }, … … 223 226 "support": { 224 227 "issues": "https://github.com/doctrine/collections/issues", 225 "source": "https://github.com/doctrine/collections/tree/1.6.8" 226 }, 228 "source": "https://github.com/doctrine/collections/tree/2.1.4" 229 }, 230 "funding": [ 231 { 232 "url": "https://www.doctrine-project.org/sponsorship.html", 233 "type": "custom" 234 }, 235 { 236 "url": "https://www.patreon.com/phpdoctrine", 237 "type": "patreon" 238 }, 239 { 240 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcollections", 241 "type": "tidelift" 242 } 243 ], 227 244 "install-path": "../doctrine/collections" 228 245 }, 229 246 { 247 "name": "doctrine/deprecations", 248 "version": "1.1.2", 249 "version_normalized": "1.1.2.0", 250 "source": { 251 "type": "git", 252 "url": "https://github.com/doctrine/deprecations.git", 253 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" 254 }, 255 "dist": { 256 "type": "zip", 257 "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 258 "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", 259 "shasum": "" 260 }, 261 "require": { 262 "php": "^7.1 || ^8.0" 263 }, 264 "require-dev": { 265 "doctrine/coding-standard": "^9", 266 "phpstan/phpstan": "1.4.10 || 1.10.15", 267 "phpstan/phpstan-phpunit": "^1.0", 268 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 269 "psalm/plugin-phpunit": "0.18.4", 270 "psr/log": "^1 || ^2 || ^3", 271 "vimeo/psalm": "4.30.0 || 5.12.0" 272 }, 273 "suggest": { 274 "psr/log": "Allows logging deprecations via PSR-3 logger implementation" 275 }, 276 "time": "2023-09-27T20:04:15+00:00", 277 "type": "library", 278 "installation-source": "dist", 279 "autoload": { 280 "psr-4": { 281 "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" 282 } 283 }, 284 "notification-url": "https://packagist.org/downloads/", 285 "license": [ 286 "MIT" 287 ], 288 "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", 289 "homepage": "https://www.doctrine-project.org/", 290 "support": { 291 "issues": "https://github.com/doctrine/deprecations/issues", 292 "source": "https://github.com/doctrine/deprecations/tree/1.1.2" 293 }, 294 "install-path": "../doctrine/deprecations" 295 }, 296 { 230 297 "name": "simshaun/recurr", 231 "version": "v 4.0.5",232 "version_normalized": " 4.0.5.0",298 "version": "v5.0.2", 299 "version_normalized": "5.0.2.0", 233 300 "source": { 234 301 "type": "git", 235 302 "url": "https://github.com/simshaun/recurr.git", 236 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749"303 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172" 237 304 }, 238 305 "dist": { 239 306 "type": "zip", 240 "url": "https://api.github.com/repos/simshaun/recurr/zipball/ 08b0b46879f598cd11dd42b4c1a9c221a0562749",241 "reference": " 08b0b46879f598cd11dd42b4c1a9c221a0562749",307 "url": "https://api.github.com/repos/simshaun/recurr/zipball/1aff62e6e0ee875b3f2487352542605123ee9172", 308 "reference": "1aff62e6e0ee875b3f2487352542605123ee9172", 242 309 "shasum": "" 243 310 }, 244 311 "require": { 245 "doctrine/collections": "~1. 3",246 "php": " >=5.5.0"312 "doctrine/collections": "~1.6||^2.0", 313 "php": "^7.2||^8.0" 247 314 }, 248 315 "require-dev": { 249 "phpunit/phpunit": "~5.7" 250 }, 251 "time": "2021-03-25T23:00:49+00:00", 316 "phpunit/phpunit": "^8.5.16", 317 "symfony/yaml": "^5.3" 318 }, 319 "time": "2023-09-26T20:31:33+00:00", 252 320 "type": "library", 253 321 "extra": { … … 284 352 "support": { 285 353 "issues": "https://github.com/simshaun/recurr/issues", 286 "source": "https://github.com/simshaun/recurr/tree/v 4.0.5"354 "source": "https://github.com/simshaun/recurr/tree/v5.0.2" 287 355 }, 288 356 "install-path": "../simshaun/recurr" -
acf-rrule-field/trunk/vendor/composer/installed.php
r2628164 r2980255 1 <?php return array ( 2 'root' => 3 array ( 4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'aliases' => 7 array ( 1 <?php return array( 2 'root' => array( 3 'name' => 'marcbelletre/acf-rrule', 4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '07070b0c9f2875e3824e47a17469651978c96d90', 7 'type' => 'wordpress-plugin', 8 'install_path' => __DIR__ . '/../../', 9 'aliases' => array(), 10 'dev' => true, 8 11 ), 9 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1', 10 'name' => 'marcbelletre/acf-rrule', 11 ), 12 'versions' => 13 array ( 14 'composer/installers' => 15 array ( 16 'pretty_version' => 'v1.12.0', 17 'version' => '1.12.0.0', 18 'aliases' => 19 array ( 20 ), 21 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', 12 'versions' => array( 13 'composer/installers' => array( 14 'pretty_version' => 'v1.12.0', 15 'version' => '1.12.0.0', 16 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', 17 'type' => 'composer-plugin', 18 'install_path' => __DIR__ . '/./installers', 19 'aliases' => array(), 20 'dev_requirement' => false, 21 ), 22 'doctrine/collections' => array( 23 'pretty_version' => '2.1.4', 24 'version' => '2.1.4.0', 25 'reference' => '72328a11443a0de79967104ad36ba7b30bded134', 26 'type' => 'library', 27 'install_path' => __DIR__ . '/../doctrine/collections', 28 'aliases' => array(), 29 'dev_requirement' => false, 30 ), 31 'doctrine/deprecations' => array( 32 'pretty_version' => '1.1.2', 33 'version' => '1.1.2.0', 34 'reference' => '4f2d4f2836e7ec4e7a8625e75c6aa916004db931', 35 'type' => 'library', 36 'install_path' => __DIR__ . '/../doctrine/deprecations', 37 'aliases' => array(), 38 'dev_requirement' => false, 39 ), 40 'marcbelletre/acf-rrule' => array( 41 'pretty_version' => 'dev-master', 42 'version' => 'dev-master', 43 'reference' => '07070b0c9f2875e3824e47a17469651978c96d90', 44 'type' => 'wordpress-plugin', 45 'install_path' => __DIR__ . '/../../', 46 'aliases' => array(), 47 'dev_requirement' => false, 48 ), 49 'roundcube/plugin-installer' => array( 50 'dev_requirement' => false, 51 'replaced' => array( 52 0 => '*', 53 ), 54 ), 55 'shama/baton' => array( 56 'dev_requirement' => false, 57 'replaced' => array( 58 0 => '*', 59 ), 60 ), 61 'simshaun/recurr' => array( 62 'pretty_version' => 'v5.0.2', 63 'version' => '5.0.2.0', 64 'reference' => '1aff62e6e0ee875b3f2487352542605123ee9172', 65 'type' => 'library', 66 'install_path' => __DIR__ . '/../simshaun/recurr', 67 'aliases' => array(), 68 'dev_requirement' => false, 69 ), 22 70 ), 23 'doctrine/collections' =>24 array (25 'pretty_version' => '1.6.8',26 'version' => '1.6.8.0',27 'aliases' =>28 array (29 ),30 'reference' => '1958a744696c6bb3bb0d28db2611dc11610e78af',31 ),32 'marcbelletre/acf-rrule' =>33 array (34 'pretty_version' => 'dev-master',35 'version' => 'dev-master',36 'aliases' =>37 array (38 ),39 'reference' => '24b8b8a05d665af4c26eeec158ee827e38e02af1',40 ),41 'roundcube/plugin-installer' =>42 array (43 'replaced' =>44 array (45 0 => '*',46 ),47 ),48 'shama/baton' =>49 array (50 'replaced' =>51 array (52 0 => '*',53 ),54 ),55 'simshaun/recurr' =>56 array (57 'pretty_version' => 'v4.0.5',58 'version' => '4.0.5.0',59 'aliases' =>60 array (61 ),62 'reference' => '08b0b46879f598cd11dd42b4c1a9c221a0562749',63 ),64 ),65 71 ); -
acf-rrule-field/trunk/vendor/composer/platform_check.php
r2489893 r2980255 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70103)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.3". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 80100)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
acf-rrule-field/trunk/vendor/doctrine/collections/CONTRIBUTING.md
r2581616 r2980255 6 6 These guidelines exist not to annoy you, but to keep the code base clean, 7 7 unified and future proof. 8 9 ## We only accept PRs to "master"10 11 Our branching strategy is "everything to master first", even12 bugfixes and we then merge them into the stable branches. You should only13 open pull requests against the master branch. Otherwise we cannot accept the PR.14 15 There is one exception to the rule, when we merged a bug into some stable branches16 we do occasionally accept pull requests that merge the same bug fix into earlier17 branches.18 8 19 9 ## Coding Standard -
acf-rrule-field/trunk/vendor/doctrine/collections/README.md
r2581616 r2980255 2 2 3 3 [](https://github.com/doctrine/collections/actions) 4 [](https://codecov.io/gh/doctrine/collections/branch/master)4 [](https://codecov.io/gh/doctrine/collections/branch/2.0.x) 5 5 6 6 Collections Abstraction library 7 8 ## Changelog9 10 ### v1.6.111 12 This release, combined with the release of [`doctrine/collections` `v1.6.1`](https://github.com/doctrine/collections/releases/tag/v1.6.1),13 fixes an issue where parsing annotations was not possible14 for classes within `doctrine/collections`.15 16 Specifically, `v1.6.0` introduced Psalm-specific annotations17 such as (for example) `@template` and `@template-implements`,18 which were both incorrectly recognized as `@template`.19 20 `@template` has therefore been removed, and instead we use21 the prefixed `@psalm-template`, which is no longer parsed22 by `doctrine/collections` `v1.6.1`23 24 Total issues resolved: **1**25 26 - [186: Use `@psalm-template` annotation to avoid clashes](https://github.com/doctrine/collections/pull/186) thanks to @muglug27 28 ### v1.6.029 30 This release bumps the minimum required PHP version to 7.1.3.31 32 Following improvements were introduced:33 34 * `ArrayCollection#filter()` now allows filtering by key, value or both.35 * When using the `ClosureExpressionVisitor` over objects with a defined36 accessor and property, the accessor is prioritised.37 * Updated testing tools and coding standards, autoloading, which also38 led to marginal performance improvements39 * Introduced generic type docblock declarations from [psalm](https://github.com/vimeo/psalm),40 which should allow users to declare `/** @var Collection<KeyType, ValueType> */`41 in their code, and leverage the type propagation deriving from that.42 43 Total issues resolved: **16**44 45 - [127: Use PSR-4](https://github.com/doctrine/collections/pull/127) thanks to @Nyholm46 - [129: Remove space in method declaration](https://github.com/doctrine/collections/pull/129) thanks to @bounoable47 - [130: Update build to add PHPCS and PHPStan](https://github.com/doctrine/collections/pull/130) thanks to @lcobucci48 - [131: ClosureExpressionVisitor > Don't duplicate the accessor when the field already starts with it](https://github.com/doctrine/collections/pull/131) thanks to @ruudk49 - [139: Apply Doctrine CS 2.1](https://github.com/doctrine/collections/pull/139) thanks to @Majkl57850 - [142: CS 4.0, version composer.lock, merge stages](https://github.com/doctrine/collections/pull/142) thanks to @Majkl57851 - [144: Update to PHPUnit 7](https://github.com/doctrine/collections/pull/144) thanks to @carusogabriel52 - [146: Update changelog for v1.4.0 and v1.5.0](https://github.com/doctrine/collections/pull/146) thanks to @GromNaN53 - [154: Update index.rst](https://github.com/doctrine/collections/pull/154) thanks to @chraiet54 - [158: Extract Selectable method into own documentation section](https://github.com/doctrine/collections/pull/158) thanks to @SenseException55 - [160: Update homepage](https://github.com/doctrine/collections/pull/160) thanks to @Majkl57856 - [165: Allow `ArrayCollection#filter()` to filter by key, value or both](https://github.com/doctrine/collections/issues/165) thanks to @0x13a57 - [167: Allow `ArrayCollection#filter()` to filter by key and also value](https://github.com/doctrine/collections/pull/167) thanks to @0x13a58 - [175: CI: Test against PHP 7.4snapshot instead of nightly (8.0)](https://github.com/doctrine/collections/pull/175) thanks to @Majkl57859 - [177: Generify collections using Psalm](https://github.com/doctrine/collections/pull/177) thanks to @nschoellhorn60 - [178: Updated doctrine/coding-standard to 6.0](https://github.com/doctrine/collections/pull/178) thanks to @patrickjahns61 62 ### v1.5.063 64 * [Require PHP 7.1+](https://github.com/doctrine/collections/pull/105)65 * [Drop HHVM support](https://github.com/doctrine/collections/pull/118)66 67 ### v1.4.068 69 * [Require PHP 5.6+](https://github.com/doctrine/collections/pull/105)70 * [Add `ArrayCollection::createFrom()`](https://github.com/doctrine/collections/pull/91)71 * [Support non-camel-case naming](https://github.com/doctrine/collections/pull/57)72 * [Comparison `START_WITH`, `END_WITH`](https://github.com/doctrine/collections/pull/78)73 * [Comparison `MEMBER_OF`](https://github.com/doctrine/collections/pull/66)74 * [Add Contributing guide](https://github.com/doctrine/collections/pull/103)75 76 ### v1.3.077 78 * [Explicit casting of first and max results in criteria API](https://github.com/doctrine/collections/pull/26)79 * [Keep keys when using `ArrayCollection#matching()` with sorting](https://github.com/doctrine/collections/pull/49)80 * [Made `AbstractLazyCollection#$initialized` protected for extensibility](https://github.com/doctrine/collections/pull/52)81 82 ### v1.2.083 84 * Add a new ``AbstractLazyCollection``85 86 ### v1.1.087 88 * Deprecated ``Comparison::IS``, because it's only there for SQL semantics.89 These are fixed in the ORM instead.90 * Add ``Comparison::CONTAINS`` to perform partial string matches:91 92 $criteria->andWhere($criteria->expr()->contains('property', 'Foo')); -
acf-rrule-field/trunk/vendor/doctrine/collections/composer.json
r2581616 r2980255 1 1 { 2 2 "name": "doctrine/collections", 3 "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.", 4 "license": "MIT", 3 5 "type": "library", 4 "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.",5 6 "keywords": [ 6 7 "php", … … 9 10 "iterators" 10 11 ], 12 "authors": [ 13 { 14 "name": "Guilherme Blanco", 15 "email": "[email protected]" 16 }, 17 { 18 "name": "Roman Borschel", 19 "email": "[email protected]" 20 }, 21 { 22 "name": "Benjamin Eberlei", 23 "email": "[email protected]" 24 }, 25 { 26 "name": "Jonathan Wage", 27 "email": "[email protected]" 28 }, 29 { 30 "name": "Johannes Schmitt", 31 "email": "[email protected]" 32 } 33 ], 11 34 "homepage": "https://www.doctrine-project.org/projects/collections.html", 12 "license": "MIT",13 "authors": [14 {"name": "Guilherme Blanco", "email": "[email protected]"},15 {"name": "Roman Borschel", "email": "[email protected]"},16 {"name": "Benjamin Eberlei", "email": "[email protected]"},17 {"name": "Jonathan Wage", "email": "[email protected]"},18 {"name": "Johannes Schmitt", "email": "[email protected]"}19 ],20 35 "require": { 21 "php": "^7.1.3 || ^8.0" 36 "php": "^8.1", 37 "doctrine/deprecations": "^1" 22 38 }, 23 39 "require-dev": { 24 "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 25 "doctrine/coding-standard": "^9.0", 26 "phpstan/phpstan": "^0.12", 27 "vimeo/psalm": "^4.2.1" 40 "ext-json": "*", 41 "doctrine/coding-standard": "^12", 42 "phpstan/phpstan": "^1.8", 43 "phpstan/phpstan-phpunit": "^1.0", 44 "phpunit/phpunit": "^9.5", 45 "vimeo/psalm": "^5.11" 28 46 }, 29 47 "autoload": { 30 "psr-4": { "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections" } 48 "psr-4": { 49 "Doctrine\\Common\\Collections\\": "src" 50 } 31 51 }, 32 52 "autoload-dev": { 33 53 "psr-4": { 34 "Doctrine\\Tests\\": "tests/Doctrine/Tests" 54 "Doctrine\\Tests\\": "tests" 55 } 56 }, 57 "config": { 58 "allow-plugins": { 59 "composer/package-versions-deprecated": true, 60 "dealerdirect/phpcodesniffer-composer-installer": true 35 61 } 36 62 } -
acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/expression-builder.rst
r2421882 r2980255 39 39 $expressionBuilder->eq('foo', 1), 40 40 $expressionBuilder->eq('bar', 1) 41 ); 42 43 $collection->matching(new Criteria($expression)); 44 45 not 46 --- 47 48 .. code-block:: php 49 $expressionBuilder = Criteria::expr(); 50 51 $expression = $expressionBuilder->not( 52 $expressionBuilder->eq('foo', 1) 41 53 ); 42 54 -
acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/expressions.rst
r2421882 r2980255 3 3 4 4 The ``Doctrine\Common\Collections\Expr\Comparison`` class 5 can be used to create expressions to be used with the5 can be used to create comparison expressions to be used with the 6 6 ``Doctrine\Common\Collections\Criteria`` class. It has the 7 7 following operator constants: … … 20 20 - ``Comparison::STARTS_WITH`` 21 21 - ``Comparison::ENDS_WITH`` 22 23 The ``Doctrine\Common\Collections\Expr\CompositeExpression`` class 24 can be used to create composite expressions to be used with the 25 ``Doctrine\Common\Collections\Criteria`` class. It has the 26 following operator constants: 27 28 - ``CompositeExpression::TYPE_AND`` 29 - ``CompositeExpression::TYPE_OR`` 30 - ``CompositeExpression::TYPE_NOT`` 31 32 When using the ``TYPE_OR`` and ``TYPE_AND`` operators the 33 ``CompositeExpression`` accepts multiple expressions as parameter 34 but only one expression can be provided when using the ``NOT`` operator. 22 35 23 36 The ``Doctrine\Common\Collections\Criteria`` class has the following -
acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/index.rst
r2581616 r2980255 33 33 of the collection being at a certain position unless you explicitly positioned it before. 34 34 35 Methods that do not alter the collection or have template types 36 appearing in invariant or contravariant positions are not directly 37 defined in ``Doctrine\Common\Collections\Collection``, but are inherited 38 from the ``Doctrine\Common\Collections\ReadableCollection`` interface. 39 35 40 The methods available on the interface are: 36 41 … … 149 154 }); // true 150 155 156 findFirst 157 --------- 158 159 Returns the first element of this collection that satisfies the given predicate. 160 161 .. code-block:: php 162 $collection = new Collection([1, 2, 3, 2, 1]); 163 164 $one = $collection->findFirst(function(int $key, int $value): bool { 165 return $value > 2 && $key > 1; 166 }); // 3 167 151 168 filter 152 169 ------ … … 217 234 return $value + 1; 218 235 }); // [2, 3, 4] 236 237 reduce 238 ------ 239 240 Applies iteratively the given function to each element in the collection, so as to reduce the collection to a single value. 241 242 .. code-block:: php 243 $collection = new ArrayCollection([1, 2, 3]); 244 245 $reduce = $collection->reduce(function(int $accumulator, int $value): int { 246 return $accumulator + $value; 247 }, 0); // 6 219 248 220 249 next … … 303 332 304 333 Selects all elements from a selectable that match the expression and 305 returns a new collection containing these elements .334 returns a new collection containing these elements and preserved keys. 306 335 307 336 .. code-block:: php … … 310 339 311 340 $collection = new ArrayCollection([ 312 [341 'wage' => [ 313 342 'name' => 'jwage', 314 343 ], 315 [344 'roman' => [ 316 345 'name' => 'romanb', 317 346 ], … … 324 353 $criteria->where($expr); 325 354 326 $match ed = $collection->matching($criteria); // ['jwage']355 $matchingCollection = $collection->matching($criteria); // [ 'wage' => [ 'name' => 'jwage' ]] 327 356 328 357 You can read more about expressions :ref:`here <expressions>`. -
acf-rrule-field/trunk/vendor/doctrine/collections/docs/en/sidebar.rst
r2421882 r2980255 7 7 derived-collections 8 8 lazy-collections 9 serialization -
acf-rrule-field/trunk/vendor/simshaun/recurr/README.md
r2421882 r2980255 1 # Recurr [](https://travis-ci.org/simshaun/recurr.png) [](https://packagist.org/packages/simshaun/recurr) [](https://packagist.org/packages/simshaun/recurr) [](https://packagist.org/packages/simshaun/recurr) [](https://packagist.org/packages/simshaun/recurr) 1 # Recurr 2 3 [](https://github.com/simshaun/recurr/actions) 4 [](https://packagist.org/packages/simshaun/recurr) 5 [](https://packagist.org/packages/simshaun/recurr) 6 [](https://packagist.org/packages/simshaun/recurr) 7 [](https://packagist.org/packages/simshaun/recurr) 2 8 3 9 Recurr is a PHP library for working with recurrence rules ([RRULE](https://tools.ietf.org/html/rfc5545)) and converting them in to DateTime objects. … … 10 16 The recommended way to install Recurr is through [Composer](http://getcomposer.org). 11 17 12 `composer require simshaun/recurr` 18 ```bash 19 composer require simshaun/recurr 20 ``` 13 21 14 22 Using Recurr … … 154 162 ------- 155 163 156 Recurr is licensed under the MIT License. See the LICENSEfile for details.164 Recurr is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details. -
acf-rrule-field/trunk/vendor/simshaun/recurr/composer.json
r2525762 r2980255 14 14 ], 15 15 "require": { 16 "php": " >=5.5.0",17 "doctrine/collections": "~1. 3"16 "php": "^7.2||^8.0", 17 "doctrine/collections": "~1.6||^2.0" 18 18 }, 19 19 "require-dev": { 20 "phpunit/phpunit": "~5.7" 20 "phpunit/phpunit": "^8.5.16", 21 "symfony/yaml": "^5.3" 21 22 }, 22 23 "autoload": { … … 34 35 "dev-master": "0.x-dev" 35 36 } 37 }, 38 "scripts": { 39 "test": "./vendor/bin/phpunit --color=always" 36 40 } 37 41 }
Note: See TracChangeset
for help on using the changeset viewer.