mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Renamed the attached method to load for all models
This commit is contained in:
parent
f36c49819c
commit
c68565e2c3
12 changed files with 24 additions and 24 deletions
|
@ -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).
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue