1 | <?php |
||
20 | class EventDatetimesConnection implements ConnectionInterface |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @var EEM_Datetime $model |
||
25 | */ |
||
26 | protected $model; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * DatetimeConnection constructor. |
||
31 | * |
||
32 | * @param EEM_Datetime $model |
||
33 | */ |
||
34 | public function __construct(EEM_Datetime $model) |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | * @since $VID:$ |
||
43 | */ |
||
44 | public function config() |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @param $entity |
||
60 | * @param $args |
||
61 | * @param $context |
||
62 | * @param $info |
||
63 | * @return array |
||
64 | * @throws Exception |
||
65 | * @since $VID:$ |
||
66 | */ |
||
67 | public function resolveConnection($entity, $args, $context, $info) |
||
72 | |||
73 | |||
74 | /** |
||
75 | * @param $id |
||
76 | * @param $args |
||
77 | * @param $context |
||
78 | * @param $info |
||
79 | * @return EE_Base_Class |
||
80 | * @since $VID:$ |
||
81 | */ |
||
82 | public function resolveNode($id, $args, $context, $info) |
||
86 | |||
87 | /** |
||
88 | * Given an optional array of args, this returns the args to be used in the connection |
||
89 | * |
||
90 | * @access public |
||
91 | * @param array $args The args to modify the defaults |
||
92 | * |
||
93 | * @return array |
||
94 | */ |
||
95 | // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
||
96 | public static function get_connection_args($args = []) |
||
128 | } |
||
129 |