InDefero

Sign in or create your account | Project List | Help

InDefero Git Source Tree

Root/src/IDF/conf/views.php

Source at commit 7383e18dff19e7e6a1e56d55cdfbfa109e91bfb3 created 2 years 1 month ago.
By Loic d'Anterroches, Fixed issue 4, with fine control over the tabs access.
1<?php
2/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3/*
4# ***** BEGIN LICENSE BLOCK *****
5# This file is part of InDefero, an open source project management application.
6# Copyright (C) 2008 Céondo Ltd and contributors.
7#
8# InDefero is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# InDefero is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21#
22# ***** END LICENSE BLOCK ***** */
23
24$ctl = array();
25$base = Pluf::f('idf_base');
26
27$ctl[] = array('regex' => '#^/$#',
28               'base' => $base,
29               'priority' => 4,
30               'model' => 'IDF_Views',
31               'method' => 'index');
32
33$ctl[] = array('regex' => '#^/login/$#',
34               'base' => $base,
35               'priority' => 4,
36               'model' => 'IDF_Views',
37               'method' => 'login',
38               'name' => 'login_view');
39
40$ctl[] = array('regex' => '#^/register/$#',
41               'base' => $base,
42               'priority' => 4,
43               'model' => 'IDF_Views',
44               'method' => 'register');
45
46$ctl[] = array('regex' => '#^/register/k/(.*)/$#',
47               'base' => $base,
48               'priority' => 4,
49               'model' => 'IDF_Views',
50               'method' => 'registerConfirmation');
51
52$ctl[] = array('regex' => '#^/register/ik/$#',
53               'base' => $base,
54               'priority' => 4,
55               'model' => 'IDF_Views',
56               'method' => 'registerInputKey');
57
58$ctl[] = array('regex' => '#^/logout/$#',
59               'base' => $base,
60               'priority' => 4,
61               'model' => 'IDF_Views',
62               'method' => 'logout');
63
64$ctl[] = array('regex' => '#^/help/$#',
65               'base' => $base,
66               'priority' => 4,
67               'model' => 'IDF_Views',
68               'method' => 'faq');
69
70$ctl[] = array('regex' => '#^/p/(\w+)/$#',
71               'base' => $base,
72               'priority' => 4,
73               'model' => 'IDF_Views_Project',
74               'method' => 'home');
75
76$ctl[] = array('regex' => '#^/p/(\w+)/issues/$#',
77               'base' => $base,
78               'priority' => 4,
79               'model' => 'IDF_Views_Issue',
80               'method' => 'index');
81
82$ctl[] = array('regex' => '#^/p/(\w+)/issues/(\d+)/$#',
83               'base' => $base,
84               'priority' => 4,
85               'model' => 'IDF_Views_Issue',
86               'method' => 'view');
87
88$ctl[] = array('regex' => '#^/p/(\w+)/issues/status/(\w+)/$#',
89               'base' => $base,
90               'priority' => 4,
91               'model' => 'IDF_Views_Issue',
92               'method' => 'listStatus');
93
94$ctl[] = array('regex' => '#^/p/(\w+)/issues/label/(\d+)/(\w+)/$#',
95               'base' => $base,
96               'priority' => 4,
97               'model' => 'IDF_Views_Issue',
98               'method' => 'listLabel');
99
100$ctl[] = array('regex' => '#^/p/(\w+)/issues/create/$#',
101               'base' => $base,
102               'priority' => 4,
103               'model' => 'IDF_Views_Issue',
104               'method' => 'create');
105
106$ctl[] = array('regex' => '#^/p/(\w+)/issues/my/(\w+)/$#',
107               'base' => $base,
108               'priority' => 4,
109               'model' => 'IDF_Views_Issue',
110               'method' => 'myIssues');
111
112// ---------- GIT ----------------------------------------
113
114$ctl[] = array('regex' => '#^/p/(\w+)/source/$#',
115               'base' => $base,
116               'priority' => 4,
117               'model' => 'IDF_Views_Source',
118               'method' => 'index');
119
120$ctl[] = array('regex' => '#^/p/(\w+)/source/tree/(\w+)/$#',
121               'base' => $base,
122               'priority' => 4,
123               'model' => 'IDF_Views_Source',
124               'method' => 'treeBase');
125
126$ctl[] = array('regex' => '#^/p/(\w+)/source/tree/(\w+)/(.*)$#',
127               'base' => $base,
128               'priority' => 4,
129               'model' => 'IDF_Views_Source',
130               'method' => 'tree');
131
132$ctl[] = array('regex' => '#^/p/(\w+)/source/changes/(\w+)/$#',
133               'base' => $base,
134               'priority' => 4,
135               'model' => 'IDF_Views_Source',
136               'method' => 'changeLog');
137
138$ctl[] = array('regex' => '#^/p/(\w+)/source/commit/(\w+)/$#',
139               'base' => $base,
140               'priority' => 4,
141               'model' => 'IDF_Views_Source',
142               'method' => 'commit');
143
144$ctl[] = array('regex' => '#^/p/(\w+)/source/download/(\w+)/$#',
145               'base' => $base,
146               'priority' => 4,
147               'model' => 'IDF_Views_Source',
148               'method' => 'download');
149
150// ---------- Downloads ------------------------------------
151
152$ctl[] = array('regex' => '#^/p/(\w+)/downloads/$#',
153               'base' => $base,
154               'priority' => 4,
155               'model' => 'IDF_Views_Download',
156               'method' => 'index');
157
158$ctl[] = array('regex' => '#^/p/(\w+)/downloads/label/(\d+)/$#',
159               'base' => $base,
160               'priority' => 4,
161               'model' => 'IDF_Views_Download',
162               'method' => 'listLabel');
163
164$ctl[] = array('regex' => '#^/p/(\w+)/downloads/(\d+)/$#',
165               'base' => $base,
166               'priority' => 4,
167               'model' => 'IDF_Views_Download',
168               'method' => 'view');
169
170$ctl[] = array('regex' => '#^/p/(\w+)/downloads/(\d+)/get/$#',
171               'base' => $base,
172               'priority' => 4,
173               'model' => 'IDF_Views_Download',
174               'method' => 'download');
175
176$ctl[] = array('regex' => '#^/p/(\w+)/downloads/create/$#',
177               'base' => $base,
178               'priority' => 4,
179               'model' => 'IDF_Views_Download',
180               'method' => 'submit');
181
182
183// ---------- ADMIN --------------------------------------
184
185$ctl[] = array('regex' => '#^/p/(\w+)/admin/$#',
186               'base' => $base,
187               'priority' => 4,
188               'model' => 'IDF_Views_Project',
189               'method' => 'admin');
190
191$ctl[] = array('regex' => '#^/p/(\w+)/admin/issues/$#',
192               'base' => $base,
193               'priority' => 4,
194               'model' => 'IDF_Views_Project',
195               'method' => 'adminIssues');
196
197$ctl[] = array('regex' => '#^/p/(\w+)/admin/downloads/$#',
198               'base' => $base,
199               'priority' => 4,
200               'model' => 'IDF_Views_Project',
201               'method' => 'adminDownloads');
202
203$ctl[] = array('regex' => '#^/p/(\w+)/admin/members/$#',
204               'base' => $base,
205               'priority' => 4,
206               'model' => 'IDF_Views_Project',
207               'method' => 'adminMembers');
208
209$ctl[] = array('regex' => '#^/p/(\w+)/admin/tabs/$#',
210               'base' => $base,
211               'priority' => 4,
212               'model' => 'IDF_Views_Project',
213               'method' => 'adminTabs');
214
215return $ctl;
216

Archive Download this file

Branches:
dev
develop
master
newdiff
svn

Tags:
v1.0