WebbuildersGroup\DeploymentNotes\Control\DeploymentSchedule
Class DeploymentSchedule
Synopsis
class DeploymentSchedule
extends Controller
{
- // members
- private static array $allowed_actions = ;
- private static integer $deployment_cycle_length = 4;
- private static integer $planning_period_length = 1;
- private static integer $staging_period_length = 1;
- private static integer $number_of_future_deployments = 4;
- private static integer $deployment_history_page_length = 12;
- private static string|array|bool $view_permission_code = 'VIEW_DRAFT_CONTENT';
- protected boolean $upcomingDeployments = false;
- protected boolean $currentDeployment = false;
- // methods
- public void init()
- public bool canView()
- public string Link()
- public string AbsoluteLink()
- public array note()
- public string getTitle()
- public array getDeploymentHistory()
- public array getUpcomingDeploymentSchedule()
- protected int populateScheduleBetween()
- public float getCurrentCyclePercentage()
- public ArrayData|DeploymentNote getCurrentDeployment()
- public int getPlanningPercentage()
- public int getDevPercentage()
- public int getStagingPercentage()
- public bool getIsAdmin()
- protected int networkdays()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $allowed_actions
- $deployment_cycle_length
—
int
The length of the deployment cycle in weeks - $deployment_history_page_length
—
int
The number of historical deployments per-page - $number_of_future_deployments
—
int
The number of future deployments to show - $planning_period_length
—
int
The length of the planning period in weeks - $staging_period_length
—
int
The length of the staging period in weeks - $view_permission_code
—
WebbuildersGroup\DeploymentNotes\Control\string|array|bool
The permission code to check for to allow access to the deployment schedule
protected
- $currentDeployment
- $upcomingDeployments
Methods
protected
- networkdays() — Calculates the number of network days (business days) between two dates
- populateScheduleBetween() — Populates the schedule between two dates
public
- AbsoluteLink() — Gets the Absolute Link to this controller
- Link() — Gets the Relative Link to this controller
- canView() — Checks to see if a member can view the deployment schedule or not
- getCurrentCyclePercentage() — Gets the percentage through the current cycle
- getCurrentDeployment() — Gets the current deployment or upcoming deployment instance
- getDeploymentHistory() — Gets the historical deployments
- getDevPercentage() — Gets the percentage that the development period represents in the development cycle
- getIsAdmin() — Checks to see if the current member has the admin permission
- getPlanningPercentage() — Gets the percentage that the planning period represents in the development cycle
- getStagingPercentage() — Gets the percentage that the staging period represents in the development cycle
- getTitle() — Gets the title to use in the browser
- getUpcomingDeploymentSchedule() — Gets the upcoming deployments
- init()
- note() — Handles rendering requests for the note