public static function getDurationsList() { $periods = PeriodType::find()->all(); return ArrayHelper::map($periods, 'id', 'duration'); }