private function addBasicCreateAndEditVariables($view, $alert) { $view->alert = $alert; $view->alertGroupConditions = Processor::getGroupConditions(); $view->alertMetricConditions = Processor::getMetricConditions(); $view->comparablesDates = Processor::getComparablesDates(); $view->reportMetadata = $this->findReportMetadata($alert); $view->requirementsAreMet = $this->areRequirementsMet(); $view->supportsSMS = $this->supportsSms(); }
public function isValidMetricCondition($condition) { $conditions = Processor::getMetricConditions(); $conditions = array_values($conditions); return in_array($condition, $conditions); }