diff --git a/application/models/Admins_model.php b/application/models/Admins_model.php index 69733296..d1b9cc73 100644 --- a/application/models/Admins_model.php +++ b/application/models/Admins_model.php @@ -534,14 +534,14 @@ class Admins_model extends EA_Model { } /** - * Attach related resources to an admin. + * Load related resources to an admin. * * @param array $admin Associative array with the admin data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$admin, array $resources) + public function load(array &$admin, array $resources) { // Admins do not currently have any related resources (settings are already part of the admins). } diff --git a/application/models/Appointments_model.php b/application/models/Appointments_model.php index 2086795f..797f7a2f 100644 --- a/application/models/Appointments_model.php +++ b/application/models/Appointments_model.php @@ -469,14 +469,14 @@ class Appointments_model extends EA_Model { } /** - * Attach related resources to an appointment. + * Load related resources to an appointment. * * @param array $appointment Associative array with the appointment data. * @param array $resources Resource names to be attached ("service", "provider", "customer" supported). * * @throws InvalidArgumentException */ - public function attach(array &$appointment, array $resources) + public function load(array &$appointment, array $resources) { if (empty($appointment) || empty($resources)) { diff --git a/application/models/Consents_model.php b/application/models/Consents_model.php index 2faa2251..c6d178a6 100644 --- a/application/models/Consents_model.php +++ b/application/models/Consents_model.php @@ -272,14 +272,14 @@ class Consents_model extends EA_Model { } /** - * Attach related resources to a consent. + * Load related resources to a consent. * * @param array $consent Associative array with the consent data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$consent, array $resources) + public function load(array &$consent, array $resources) { // Consents do not currently have any related resources. } diff --git a/application/models/Customers_model.php b/application/models/Customers_model.php index f330bb80..de7a3cc0 100644 --- a/application/models/Customers_model.php +++ b/application/models/Customers_model.php @@ -425,14 +425,14 @@ class Customers_model extends EA_Model { } /** - * Attach related resources to a customer. + * Load related resources to a customer. * * @param array $customer Associative array with the customer data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$customer, array $resources) + public function load(array &$customer, array $resources) { // Customers do not currently have any related resources. } diff --git a/application/models/Providers_model.php b/application/models/Providers_model.php index a507afe1..e362b11b 100755 --- a/application/models/Providers_model.php +++ b/application/models/Providers_model.php @@ -724,14 +724,14 @@ class Providers_model extends EA_Model { } /** - * Attach related resources to a provider. + * Load related resources to a provider. * * @param array $provider Associative array with the provider data. * @param array $resources Resource names to be attached ("services" supported). * * @throws InvalidArgumentException */ - public function attach(array &$provider, array $resources) + public function load(array &$provider, array $resources) { if (empty($provider) || empty($resources)) { diff --git a/application/models/Roles_model.php b/application/models/Roles_model.php index 6b0bd2b0..ff37b7c7 100644 --- a/application/models/Roles_model.php +++ b/application/models/Roles_model.php @@ -347,14 +347,14 @@ class Roles_model extends EA_Model { } /** - * Attach related resources to a role. + * Load related resources to a role. * * @param array $role Associative array with the role data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$role, array $resources) + public function load(array &$role, array $resources) { // Roles do not currently have any related resources. } diff --git a/application/models/Secretaries_model.php b/application/models/Secretaries_model.php index ebd89bab..6008c19f 100644 --- a/application/models/Secretaries_model.php +++ b/application/models/Secretaries_model.php @@ -587,14 +587,14 @@ class Secretaries_model extends EA_Model { } /** - * Attach related resources to a secretary. + * Load related resources to a secretary. * * @param array $secretary Associative array with the secretary data. * @param array $resources Resource names to be attached ("providers" supported). * * @throws InvalidArgumentException */ - public function attach(array &$secretary, array $resources) + public function load(array &$secretary, array $resources) { if (empty($secretary) || empty($resources)) { diff --git a/application/models/Service_categories_model.php b/application/models/Service_categories_model.php index 274eb183..8e158cce 100644 --- a/application/models/Service_categories_model.php +++ b/application/models/Service_categories_model.php @@ -281,14 +281,14 @@ class Service_categories_model extends EA_Model { } /** - * Attach related resources to a service category. + * Load related resources to a service category. * * @param array $service_category Associative array with the service category data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$service_category, array $resources) + public function load(array &$service_category, array $resources) { // Service categories do not currently have any related resources. } diff --git a/application/models/Services_model.php b/application/models/Services_model.php index 63888186..4677cc89 100644 --- a/application/models/Services_model.php +++ b/application/models/Services_model.php @@ -360,14 +360,14 @@ class Services_model extends EA_Model { } /** - * Attach related resources to a service. + * Load related resources to a service. * * @param array $service Associative array with the service data. * @param array $resources Resource names to be attached ("service_category" supported). * * @throws InvalidArgumentException */ - public function attach(array &$service, array $resources) + public function load(array &$service, array $resources) { if (empty($service) || empty($resources)) { diff --git a/application/models/Settings_model.php b/application/models/Settings_model.php index ffe2dd14..2a47d642 100644 --- a/application/models/Settings_model.php +++ b/application/models/Settings_model.php @@ -280,14 +280,14 @@ class Settings_model extends EA_Model { } /** - * Attach related resources to a setting. + * Load related resources to a setting. * * @param array $setting Associative array with the setting data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$setting, array $resources) + public function load(array &$setting, array $resources) { // Users do not currently have any related resources. } diff --git a/application/models/Unavailabilities_model.php b/application/models/Unavailabilities_model.php index 1e684e53..931fee96 100644 --- a/application/models/Unavailabilities_model.php +++ b/application/models/Unavailabilities_model.php @@ -326,14 +326,14 @@ class Unavailabilities_model extends EA_Model { } /** - * Attach related resources to an unavailability. + * Load related resources to an unavailability. * * @param array $unavailability Associative array with the unavailability data. * @param array $resources Resource names to be attached ("service", "provider", "customer" supported). * * @throws InvalidArgumentException */ - public function attach(array &$unavailability, array $resources) + public function load(array &$unavailability, array $resources) { if (empty($unavailability) || empty($resources)) { diff --git a/application/models/Users_model.php b/application/models/Users_model.php index 4e7b7125..70738047 100644 --- a/application/models/Users_model.php +++ b/application/models/Users_model.php @@ -406,14 +406,14 @@ class Users_model extends EA_Model { } /** - * Attach related resources to a user. + * Load related resources to a user. * * @param array $user Associative array with the user data. * @param array $resources Resource names to be attached. * * @throws InvalidArgumentException */ - public function attach(array &$user, array $resources) + public function load(array &$user, array $resources) { // Users do not currently have any related resources. }