| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FirePlugins Framework |
| 4 | - * @version 1.0.16 | |
| 4 | + * @version 1.2.6 | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2026 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FPFramework\Base; |
| @@ -54,9 +54,19 @@ | ||
| 54 | 54 | * |
| 55 | 55 | * @var string |
| 56 | 56 | */ |
| 57 | 57 | public $assignment; |
| 58 | - | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * Assignment State (Include|Exclude) as supplied by the options object. | |
| 61 | + * | |
| 62 | + * Declared rather than created on the fly: creating a dynamic property is deprecated | |
| 63 | + * since PHP 8.2, and this class is instantiated on every assignment evaluation. | |
| 64 | + * | |
| 65 | + * @var string | |
| 66 | + */ | |
| 67 | + public $assignment_state = 'include'; | |
| 68 | + | |
| 59 | 69 | /** |
| 60 | 70 | * Framework factory object |
| 61 | 71 | */ |
| 62 | 72 | public $factory; |
| @@ -180,28 +190,8 @@ | ||
| 180 | 190 | // set cache |
| 181 | 191 | wp_cache_set($hash, $parent_ids); |
| 182 | 192 | |
| 183 | 193 | return $parent_ids; |
| 184 | - } | |
| 185 | - | |
| 186 | - /** | |
| 187 | - * Checks if an array of values (needle) exists in a text (haystack) | |
| 188 | - * | |
| 189 | - * @param array $needle The searched array of values. | |
| 190 | - * @param string $haystack The text | |
| 191 | - * | |
| 192 | - * @return bool | |
| 193 | - */ | |
| 194 | - public function passArrayInString($needle, $haystack) | |
| 195 | - { | |
| 196 | - if (empty($needle) || empty($haystack)) | |
| 197 | - { | |
| 198 | - return false; | |
| 199 | - } | |
| 200 | - | |
| 201 | - $needle = $this->splitKeywords($needle); | |
| 202 | - | |
| 203 | - return \FPFramework\Libs\Functions::strpos_arr($needle, $haystack); | |
| 204 | 194 | } |
| 205 | 195 | |
| 206 | 196 | /** |
| 207 | 197 | * Makes array from object |