Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_REST_Access_Plans_Controller::handle_props_interdependency( array $to_set, LLMS_Access_Plan $access_plan, bool $creating )
Handle properties interdependency
Parameters Parameters
- $to_set
-
(array) (Required) Array of properties to be set.
- $access_plan
-
(LLMS_Access_Plan) (Required) LLMS Access Plan instance.
- $creating
-
(bool) (Required) Whether we're in creation or update phase.
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-access-plans-controller.php
private function handle_props_interdependency( &$to_set, $access_plan, $creating ) { // Access Plan properties as saved in the db. $saved_props = $access_plan->toArray(); $this->add_subordinate_props( $to_set, $saved_props, $creating ); $this->unset_subordinate_props( $to_set, $saved_props ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.18 | Introduced. |