Skip to content

Commit

Permalink
Prepare version 4.3.0; composer update
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Oct 25, 2023
1 parent 97f11fb commit b3f1b01
Show file tree
Hide file tree
Showing 74 changed files with 315 additions and 308 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 4.2.3 - TBA
## Version 4.3.0 - October 26, 2023

ENH: Issues #824, #838, #851, #891, #910, #917 - General Behaviors Update: Cloning and Serializing supports behaviors. IBaseBehavior has init($config) method. TClassBehavior tracks their owners. Behaviors attach their registered event handlers at the behavior priority. Registered Behavior event can optionally attached and detached automatically when the behavior is enabled or disabled (default). Behavior events() support Closures. IBehavior are attachable class-wide by cloning. Behaviors for behaviors has better support. Behaviors are case insensitive. Supports Anonymous (unnamed/numeric) behaviors. Wakeup updates the component behaviors with new named class behaviors. (belisoful)
BUG: Issue #843 - Permissions Manager behaviors rename the method 'getManager' to 'getPermissionsManager' for specificity. (belisoful)
Expand Down
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Upgrading Instructions for PRADO Framework v4.x.x
# Upgrading Instructions for PRADO Framework v4.3.0

### !!!IMPORTANT!!!

Expand Down
195 changes: 101 additions & 94 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion framework/Collections/ICollectionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* into {@see WeakReference}.
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
interface ICollectionFilter
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/IPriorityCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* that provide priority collections.
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
interface IPriorityCollection
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/IWeakCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* and {@see \Prado\Collections\TWeakList} for providing weak collections.
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
interface IWeakCollection
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/IWeakRetainable.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* {@see \Prado\Collections\TWeakCallableCollection}, and {@see \Prado\TEventHandler}
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
interface IWeakRetainable
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TArraySubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* ```
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
* @todo TComponent is too complex, TBaseObject for getters/setters.
*/
class TArraySubscription
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TCollectionSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* reference.
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
class TCollectionSubscription extends TArraySubscription
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TList.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public function offsetUnset($offset): void
* because their value is the default one or useless to be cached for the next page loads.
* When there are no items in the list, _d and _c are not stored
* @param array $exprops by reference
* @since 4.2.3
* @since 4.3.0
*/
protected function _getZappableSleepProps(&$exprops)
{
Expand Down
4 changes: 2 additions & 2 deletions framework/Collections/TMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function remove($key)
* @param mixed $item the item to be removed
* @throws TInvalidOperationException if the map is read-only
* @return array The array of keys and the item removed.
* since 4.2.3
* since 4.3.0
*/
public function removeItem(mixed $item): array
{
Expand Down Expand Up @@ -236,7 +236,7 @@ public function contains($key): bool
* @param mixed $item the item
* @param bool $multiple Return an array of all the keys. Default true.
* @return false|mixed the key of the item in the map, false if not found.
* since 4.2.3
* since 4.3.0
*/
public function keyOf($item, bool $multiple = true): mixed
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TPriorityCollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* ```
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
trait TPriorityCollectionTrait
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TPriorityList.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public function offsetUnset($offset): void
* Reimplement in derived classes to add new variables, but remember to also to call the parent
* implementation first.
* @param array $exprops by reference
* @since 4.2.3
* @since 4.3.0
*/
protected function _getZappableSleepProps(&$exprops)
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TPriorityMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public function mergeWith($data): void
* Reimplement in derived classes to add new variables, but remember to also to call the parent
* implementation first.
* @param array $exprops by reference
* @since 4.2.3
* @since 4.3.0
*/
protected function _getZappableSleepProps(&$exprops)
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TPriorityPropertyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* The priority is implement with a float.
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
*/
trait TPriorityPropertyTrait
{
Expand Down
56 changes: 28 additions & 28 deletions framework/Collections/TWeakCallableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function __construct($data = null, $readOnly = null, $defaultPriority = n

/**
* Cloning a TWeakCallableCollection requires cloning the WeakMap
* @since 4.2.3
* @since 4.3.0
*/
public function __clone()
{
Expand All @@ -106,7 +106,7 @@ public function __clone()
/**
* Waking up a TWeakCallableCollection requires creating the WeakMap. No items
* are saved in TWeakList so only initialization of the WeakMap is required.
* @since 4.2.3
* @since 4.3.0
*/
public function __wakeup()
{
Expand All @@ -132,7 +132,7 @@ public function getAutoGlobalListen()
* if the object being added is a TEventHandler, we use the {@see \Prado\TEventHandler::getHandlerObject}
* object instead of the TEventHandler itself.
* @param object $object The object to add to the managed weak map.
* @since 4.2.3
* @since 4.3.0
*/
protected function weakCustomAdd(object $object)
{
Expand All @@ -151,7 +151,7 @@ protected function weakCustomAdd(object $object)
* if the object being removed is a TEventHandler, we use the {@see \Prado\TEventHandler::getHandlerObject}
* object instead of the TEventHandler itself.
* @param object $object The object to remove to the managed weak map.
* @since 4.2.3
* @since 4.3.0
*/
protected function weakCustomRemove(object $object)
{
Expand Down Expand Up @@ -226,7 +226,7 @@ public static function filterItemForInput(&$handler, $validate = false): void
* have lost their object.
* All invalid WeakReference[s] are optionally removed from the list when {@see
* getDiscardInvalid} is true.
* @since 4.2.3
* @since 4.3.0
*/
protected function scrubWeakReferences()
{
Expand Down Expand Up @@ -268,7 +268,7 @@ protected function scrubWeakReferences()

/**
* @return bool Does the TWeakList scrub invalid WeakReferences.
* @since 4.2.3
* @since 4.3.0
*/
public function getDiscardInvalid(): bool
{
Expand All @@ -290,7 +290,7 @@ protected function collapseDiscardInvalid()
* All invalid WeakReference[s] are optionally removed from the list on $value
* being "true".
* @param null|bool|string $value Sets the TWeakList scrubbing of invalid WeakReferences.
* @since 4.2.3
* @since 4.3.0
*/
public function setDiscardInvalid($value): void
{
Expand Down Expand Up @@ -351,7 +351,7 @@ protected function flattenPriorities(): void
* All invalid WeakReference[s] are optionally removed from the list before getting
* the priorities.
* @return array the array of priority numerics in increasing priority number
* @since 4.2.3
* @since 4.3.0
*/
public function getPriorities(): array
{
Expand All @@ -365,7 +365,7 @@ public function getPriorities(): array
* @param null|numeric $priority optional priority at which to count items. if no
* parameter, it will be set to the default {@see getDefaultPriority}
* @return int the number of items in the list at the specified priority
* @since 4.2.3
* @since 4.3.0
*/
public function getPriorityCount($priority = null)
{
Expand All @@ -378,7 +378,7 @@ public function getPriorityCount($priority = null)
* All invalid WeakReference[s] are optionally removed from the list before indexing.
* This method is required by the interface \IteratorAggregate.
* @return \Iterator an iterator for traversing the items in the list.
* @since 4.2.3
* @since 4.3.0
*/
public function getIterator(): \Iterator
{
Expand All @@ -392,7 +392,7 @@ public function getIterator(): \Iterator
* Returns the total number of items in the list
* All invalid WeakReference[s] are optionally removed from the list before counting.
* @return int the number of items in the list
* @since 4.2.3
* @since 4.3.0
*/
public function getCount(): int
{
Expand Down Expand Up @@ -462,7 +462,7 @@ public function itemAtIndexInPriority($index, $priority = null)
* @param mixed $item new item to add
* @throws TInvalidDataValueException If the index specified exceeds the bound
* @throws TInvalidOperationException if the list is read-only
* @since 4.2.3
* @since 4.3.0
*/
public function insertAt($index, $item)
{
Expand Down Expand Up @@ -513,7 +513,7 @@ public function insertAtIndexInPriority($item, $index = null, $priority = null,
* @throws \Prado\Exceptions\TInvalidDataValueException If the index specified exceeds the
* bound
* @throws \Prado\Exceptions\TInvalidOperationException if the list is read-only
* @since 4.2.3
* @since 4.3.0
*/
protected function internalInsertAtIndexInPriority($items, $index = null, $priority = null, $preserveCache = false)
{
Expand Down Expand Up @@ -563,7 +563,7 @@ protected function internalInsertAtIndexInPriority($items, $index = null, $prior
* the default priority.
* @throws TInvalidDataValueException If the item does not exist
* @return int index within the flattened list at which the item is being removed
* @since 4.2.3
* @since 4.3.0
*/
public function remove($item, $priority = false)
{
Expand Down Expand Up @@ -609,7 +609,7 @@ public function remove($item, $priority = false)
* @throws TInvalidDataValueException If the index specified exceeds the bound
* @throws TInvalidOperationException if the list is read-only
* @return mixed the removed item.
* @since 4.2.3
* @since 4.3.0
*/
public function removeAt($index)
{
Expand Down Expand Up @@ -647,7 +647,7 @@ public function removeAtIndexInPriority($index, $priority = null)
* left blank, it is then set to the default priority
* @throws TInvalidDataValueException If the item does not exist
* @return mixed the removed item.
* @since 4.2.3
* @since 4.3.0
*/
protected function internalRemoveAtIndexInPriority($index, $priority = null)
{
Expand All @@ -662,7 +662,7 @@ protected function internalRemoveAtIndexInPriority($index, $priority = null)
/**
* Removes all items in the priority list by calling removeAtIndexInPriority from the
* last item to the first.
* @since 4.2.3
* @since 4.3.0
*/
public function clear(): void
{
Expand All @@ -685,7 +685,7 @@ public function clear(): void
/**
* @param mixed $item the item
* @return bool whether the list contains the item
* @since 4.2.3
* @since 4.3.0
*/
public function contains($item): bool
{
Expand Down Expand Up @@ -814,7 +814,7 @@ public function priorityOf($item, $withindex = false)
* if $withindex is true, an array is returned of [0 => $priority, 1 => $priorityIndex,
* 2 => flattenedIndex, 'priority' => $priority, 'index' => $priorityIndex, 'absindex'
* => flattenedIndex]
* @since 4.2.3
* @since 4.3.0
*/
public function priorityAt($index, $withindex = false)
{
Expand All @@ -830,7 +830,7 @@ public function priorityAt($index, $withindex = false)
* @param mixed $item the item to add before indexitem
* @throws TInvalidDataValueException If the item does not exist
* @return int where the item has been inserted in the flattened list
* @since 4.2.3
* @since 4.3.0
*/
public function insertBefore($indexitem, $item)
{
Expand All @@ -855,7 +855,7 @@ public function insertBefore($indexitem, $item)
* @param mixed $item the item to add after indexitem
* @throws TInvalidDataValueException If the item does not exist
* @return int where the item has been inserted in the flattened list
* @since 4.2.3
* @since 4.3.0
*/
public function insertAfter($indexitem, $item)
{
Expand All @@ -875,7 +875,7 @@ public function insertAfter($indexitem, $item)
/**
* All invalid WeakReference[s] are optionally removed from the list before returning.
* @return array the priority list of items in array
* @since 4.2.3
* @since 4.3.0
*/
public function toArray(): array
{
Expand Down Expand Up @@ -925,7 +925,7 @@ public function toPriorityArrayWeak()
* @return array the array of priorities keys with values of arrays of items that
* are below a specified priority. The priorities are sorted so important priorities,
* lower numerics, are first.
* @since 4.2.3
* @since 4.3.0
*/
public function toArrayBelowPriority($priority, bool $inclusive = false): array
{
Expand All @@ -946,7 +946,7 @@ public function toArrayBelowPriority($priority, bool $inclusive = false): array
* @return array the array of priorities keys with values of arrays of items that
* are above a specified priority. The priorities are sorted so important priorities,
* lower numerics, are first.
* @since 4.2.3
* @since 4.3.0
*/
public function toArrayAbovePriority($priority, bool $inclusive = true): array
{
Expand All @@ -962,7 +962,7 @@ public function toArrayAbovePriority($priority, bool $inclusive = true): array
* @param mixed $data the data to be copied from, must be an array or object implementing
* Traversable
* @throws TInvalidDataTypeException If data is neither an array nor a Traversable.
* @since 4.2.3
* @since 4.3.0
*/
public function copyFrom($data): void
{
Expand Down Expand Up @@ -1007,7 +1007,7 @@ public function copyFrom($data): void
* @param mixed $data the data to be merged with, must be an array or object implementing
* Traversable
* @throws TInvalidDataTypeException If data is neither an array nor an iterator.
* @since 4.2.3
* @since 4.3.0
*/
public function mergeWith($data): void
{
Expand Down Expand Up @@ -1050,7 +1050,7 @@ public function mergeWith($data): void
* is given.
* @param int $offset the offset to set element
* @param mixed $item the element value
* @since 4.2.3
* @since 4.3.0
*/
public function offsetSet($offset, $item): void
{
Expand Down Expand Up @@ -1079,7 +1079,7 @@ public function offsetSet($offset, $item): void
* for the next page loads. Reimplement in derived classes to add new variables,
* but remember to also to call the parent implementation first.
* @param array $exprops by reference
* @since 4.2.3
* @since 4.3.0
*/
protected function _getZappableSleepProps(&$exprops)
{
Expand Down
2 changes: 1 addition & 1 deletion framework/Collections/TWeakCollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* {@see weakCount} and the count of each object with {@see weakObjectCount}.
*
* @author Brad Anderson <belisoful@icloud.com>
* @since 4.2.3
* @since 4.3.0
* @see https://www.php.net/manual/en/class.weakmap.php
*/
trait TWeakCollectionTrait
Expand Down
Loading

0 comments on commit b3f1b01

Please sign in to comment.