Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_GraduateBulletin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UNL_GraduateBulletin
Commits
5b413ef5
Commit
5b413ef5
authored
11 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
Add routes and models for individual course listings
parent
717f5691
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
data/routes.php
+1
-1
1 addition, 1 deletion
data/routes.php
src/UNL/Catalog/Listing.php
+17
-0
17 additions, 0 deletions
src/UNL/Catalog/Listing.php
www/templates/html/UNL/Catalog/Listing.tpl.php
+4
-0
4 additions, 0 deletions
www/templates/html/UNL/Catalog/Listing.tpl.php
with
22 additions
and
1 deletion
data/routes.php
+
1
−
1
View file @
5b413ef5
...
@@ -13,6 +13,6 @@ $courseNumber = '(?P<courseNumber>[\d]?[\d]{2,3}[A-Za-z]?)'; // Course number, e
...
@@ -13,6 +13,6 @@ $courseNumber = '(?P<courseNumber>[\d]?[\d]{2,3}[A-Za-z]?)'; // Course number, e
$routes
[
'/^'
.
$base
.
'\/$/'
]
=
'UNL\Catalog\SubjectAreas'
;
$routes
[
'/^'
.
$base
.
'\/$/'
]
=
'UNL\Catalog\SubjectAreas'
;
$routes
[
'/^'
.
$base
.
'\/'
.
$subjectArea
.
$format
.
'$/'
]
=
'UNL\Catalog\SubjectArea'
;
$routes
[
'/^'
.
$base
.
'\/'
.
$subjectArea
.
$format
.
'$/'
]
=
'UNL\Catalog\SubjectArea'
;
$routes
[
'/^'
.
$base
.
'\/'
.
$subjectArea
.
'\/'
.
$courseNumber
.
$format
.
'$/'
]
=
'UNL\Catalog\
Course
'
;
$routes
[
'/^'
.
$base
.
'\/'
.
$subjectArea
.
'\/'
.
$courseNumber
.
$format
.
'$/'
]
=
'UNL\Catalog\
Listing
'
;
return
$routes
;
return
$routes
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/UNL/Catalog/Listing.php
0 → 100644
+
17
−
0
View file @
5b413ef5
<?php
namespace
UNL\Catalog
;
class
Listing
{
protected
$internal
;
function
__construct
(
$options
=
array
())
{
$this
->
internal
=
new
\UNL_Services_CourseApproval_Listing
(
$options
[
'subjectArea'
],
$options
[
'courseNumber'
]);
}
function
__get
(
$var
)
{
return
$this
->
internal
->
$var
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
www/templates/html/UNL/Catalog/Listing.tpl.php
0 → 100644
+
4
−
0
View file @
5b413ef5
<?php
$context
->
subject
=
$context
->
subjectArea
;
echo
$savvy
->
render
(
$context
->
course
);
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment