11<?php
2+
3+ use phpweb \Releases \Branches ;
4+
25include_once __DIR__ . '/../include/prepend.inc ' ;
3- include_once __DIR__ . '/../include/branches.inc ' ;
4- require_once __DIR__ . '/../include/prepend.inc ' ;
5- require_once __DIR__ . '/../include/branches.inc ' ;
66
77// Sizing constants.
88$ margin_left = 80 ;
@@ -17,9 +17,9 @@ function branches_to_show() {
1717 $ branches = [];
1818
1919 // Flatten out the majors.
20- foreach (get_all_branches () as $ major_branches ) {
20+ foreach (Branches:: all () as $ major_branches ) {
2121 foreach ($ major_branches as $ branch => $ version ) {
22- if (version_compare ($ branch , '5.3 ' , 'ge ' ) && get_branch_security_eol_date ($ branch ) > min_date ()) {
22+ if (version_compare ($ branch , '5.3 ' , 'ge ' ) && Branches:: getBranchSecurityEOLDate ($ branch ) > min_date ()) {
2323 $ branches [$ branch ] = $ version ;
2424 }
2525 }
@@ -123,7 +123,7 @@ function date_horiz_coord(DateTime $date) {
123123 <!-- Branch labels -->
124124 <g class="branch-labels">
125125 <?php foreach ($ branches as $ branch => $ version ): ?>
126- <g class="<?php echo get_branch_support_state ($ branch ) ?> ">
126+ <g class="<?php echo Branches:: getBranchSupportStatus ($ branch ) ?> ">
127127 <rect x="0" y="<?php echo $ version ['top ' ] ?> " width="<?php echo 0.5 * $ margin_left ?> " height="<?php echo $ branch_height ?> " />
128128 <text x="<?php echo 0.25 * $ margin_left ?> " y="<?php echo $ version ['top ' ] + (0.5 * $ branch_height ) ?> ">
129129 <?php echo htmlspecialchars ($ branch ) ?>
@@ -136,9 +136,9 @@ function date_horiz_coord(DateTime $date) {
136136 <g class="branches">
137137 <?php foreach ($ branches as $ branch => $ version ): ?>
138138 <?php
139- $ x_release = date_horiz_coord (get_branch_release_date ($ branch ));
140- $ x_bug = date_horiz_coord (get_branch_bug_eol_date ($ branch ));
141- $ x_eol = date_horiz_coord (get_branch_security_eol_date ($ branch ));
139+ $ x_release = date_horiz_coord (Branches:: getBranchReleaseDate ($ branch ));
140+ $ x_bug = date_horiz_coord (Branches:: getBranchBugsEOLDate ($ branch ));
141+ $ x_eol = date_horiz_coord (Branches:: getBranchSecurityEOLDate ($ branch ));
142142 ?>
143143 <rect class="stable" x="<?php echo $ x_release ?> " y="<?php echo $ version ['top ' ] ?> " width="<?php echo $ x_bug - $ x_release ?> " height="<?php echo $ branch_height ?> " />
144144 <rect class="security" x="<?php echo $ x_bug ?> " y="<?php echo $ version ['top ' ] ?> " width="<?php echo $ x_eol - $ x_bug ?> " height="<?php echo $ branch_height ?> " />
0 commit comments