Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1263 | Rev 1321 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1263 Rev 1320
Línea 2122... Línea 2122...
2122
                                'action' => 'index'
2122
                                'action' => 'index'
2123
                            ]
2123
                            ]
2124
                        ],
2124
                        ],
2125
                        'may_terminate' => true,
2125
                        'may_terminate' => true,
2126
                        'child_routes' => [
2126
                        'child_routes' => [
2127
                            'add' => [
2127
                            'supervisors' => [
2128
                                'type' => Segment::class,
2128
                                'type' => Literal::class,
2129
                                'options' => [
2129
                                'options' => [
2130
                                    'route' => '/add/:form_id/:user_id',
2130
                                    'route' => 'supervisors',
2131
                                    'constraints' => [
-
 
2132
                                        'form_id' => '[A-Za-z0-9\-]+\=*',
-
 
2133
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
-
 
2134
                                    ],
-
 
2135
                                    'defaults' => [
2131
                                    'defaults' => [
2136
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormUserController',
2132
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormSupervisorController',
2137
                                        'action' => 'add'
2133
                                        'action' => 'index'
2138
                                    ]
2134
                                    ]
2139
                                ]
2135
                                ],
-
 
2136
                                'may_terminate' => true,
-
 
2137
                                'child_routes' => [
-
 
2138
                                    'add' => [
-
 
2139
                                        'type' => Segment::class,
-
 
2140
                                        'options' => [
-
 
2141
                                            'route' => '/add/:form_id/:user_id',
-
 
2142
                                            'constraints' => [
-
 
2143
                                                'form_id' => '[A-Za-z0-9\-]+\=*',
-
 
2144
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
-
 
2145
                                            ],
-
 
2146
                                            'defaults' => [
-
 
2147
                                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormSupervisorController',
-
 
2148
                                                'action' => 'add'
-
 
2149
                                            ]
-
 
2150
                                        ]
2140
                            ],
2151
                                    ],
2141
                            'delete' => [
2152
                                    'delete' => [
2142
                                'type' => Segment::class,
2153
                                        'type' => Segment::class,
2143
                                'options' => [
2154
                                        'options' => [
2144
                                    'route' => '/delete/:form_id/:user_id',
2155
                                            'route' => '/delete/:form_id/:user_id',
2145
                                    'constraints' => [
2156
                                            'constraints' => [
2146
                                        'form_id' => '[A-Za-z0-9\-]+\=*',
2157
                                                'form_id' => '[A-Za-z0-9\-]+\=*',
2147
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2158
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
-
 
2159
                                            ],
-
 
2160
                                            'defaults' => [
-
 
2161
                                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormSupervisorController',
-
 
2162
                                                'action' => 'delete'
-
 
2163
                                            ]
-
 
2164
                                        ]
2148
                                    ],
2165
                                    ]
-
 
2166
                                ]
-
 
2167
                            ],   
-
 
2168
                            'employees' => [
-
 
2169
                                'type' => Literal::class,
-
 
2170
                                'options' => [
-
 
2171
                                    'route' => 'employees',
2149
                                    'defaults' => [
2172
                                    'defaults' => [
2150
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormUserController',
2173
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormEmployeeController',
2151
                                        'action' => 'delete'
2174
                                        'action' => 'index'
-
 
2175
                                    ]
-
 
2176
                                ],
-
 
2177
                                'may_terminate' => true,
-
 
2178
                                'child_routes' => [
-
 
2179
                                    'add' => [
-
 
2180
                                        'type' => Segment::class,
-
 
2181
                                        'options' => [
-
 
2182
                                            'route' => '/add/:form_id/:supervisor_id/:employee_id',
-
 
2183
                                            'constraints' => [
-
 
2184
                                                'form_id' => '[A-Za-z0-9\-]+\=*',
-
 
2185
                                                'supervisor_id' => '[A-Za-z0-9\-]+\=*',
-
 
2186
                                                'employee_id' => '[A-Za-z0-9\-]+\=*'
-
 
2187
                                            ],
-
 
2188
                                            'defaults' => [
-
 
2189
                                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormEmployeeController',
-
 
2190
                                                'action' => 'add'
-
 
2191
                                            ]
-
 
2192
                                        ]
-
 
2193
                                    ],
-
 
2194
                                    'delete' => [
-
 
2195
                                        'type' => Segment::class,
-
 
2196
                                        'options' => [
-
 
2197
                                            'route' => '/delete/:form_id/:supervisor_id/:employee_id',
-
 
2198
                                            'constraints' => [
-
 
2199
                                                'form_id' => '[A-Za-z0-9\-]+\=*',
-
 
2200
                                                'supervisor_id' => '[A-Za-z0-9\-]+\=*',
-
 
2201
                                                'employee_id' => '[A-Za-z0-9\-]+\=*'
-
 
2202
                                            ],
-
 
2203
                                            'defaults' => [
-
 
2204
                                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationFormEmployeeController',
-
 
2205
                                                'action' => 'delete'
-
 
2206
                                            ]
-
 
2207
                                        ]
2152
                                    ]
2208
                                    ]
2153
                                ]
2209
                                ]
2154
                            ]
2210
                            ], 
-
 
2211
                           
2155
                        ]
2212
                        ]
2156
                    ],
2213
                    ],
2157
                ]
2214
                ]
2158
            ],
2215
            ],
2159
            /*             * * END PERFORMANCE EVALUATION ** */
2216
            /*             * * END PERFORMANCE EVALUATION ** */
Línea 2761... Línea 2818...
2761
                                        'controller' => '\LeadersLinked\Controller\PositionController',
2818
                                        'controller' => '\LeadersLinked\Controller\PositionController',
2762
                                        'action' => 'delete'
2819
                                        'action' => 'delete'
2763
                                    ]
2820
                                    ]
2764
                                ]
2821
                                ]
2765
                            ],
2822
                            ],
-
 
2823
                            'subordinates' => [
-
 
2824
                                'type' => Segment::class,
-
 
2825
                                'options' => [
-
 
2826
                                    'route' => '/subordinates/:job_description_id',
-
 
2827
                                    'constraints' => [
-
 
2828
                                        'job_description_id' => '[A-Za-z0-9\-]+\=*'
-
 
2829
                                    ],
-
 
2830
                                    'defaults' => [
-
 
2831
                                        'controller' => '\LeadersLinked\Controller\PositionController',
-
 
2832
                                        'action' => 'subordinates'
-
 
2833
                                    ]
-
 
2834
                                ]
-
 
2835
                            ],
2766
                        ]
2836
                        ]
2767
                    ],
2837
                    ],
2768
                    'push-templates' => [
2838
                    'push-templates' => [
2769
                        'type' => Literal::class,
2839
                        'type' => Literal::class,
2770
                        'options' => [
2840
                        'options' => [