Service/Calc/Forecast/Compress.php
private function registerCalc($period)
    {
        $ctx = new \Praxigento\Core\Data();
        $ctx->set(PCalcReg::IN_CALC_TYPE_CODE, Cfg::CODE_TYPE_CALC_FORECAST_PHASE1);
        $ctx->set(PCalcReg::IN_PERIOD, $period);
        /** @var \Praxigento\Core\Data $res */
        $res = $this->zCalcReg->exec($ctx);
        $result = $res->get(PCalcReg::OUT_CALC_ID);
        return $result;
    }
private function registerCalc($period)
    {
        $ctx = new \Praxigento\Core\Data();
        $ctx->set(PCalcReg::IN_CALC_TYPE_CODE, Cfg::CODE_TYPE_CALC_FORECAST_PHASE1);
        $ctx->set(PCalcReg::IN_PERIOD, $period);
        /** @var \Praxigento\Core\Data $res */
        $res = $this->zCalcReg->exec($ctx);
        $result = $res->get(PCalcReg::OUT_CALC_ID);
        return $result;
    }
Register new compression calculation.

@param string $period
@return int calculation ID.