/** * @inheritdoc */ protected function getDropDownList($id) { if (!isset($this->dropDownLists[$id])) { switch ($id) { case 'checkbox-drop-down-list': $this->dropDownLists['checkbox-drop-down-list'] = Html::checkboxInputFilterDropDownList(); break; default: return []; break; } } return $this->dropDownLists[$id]; }
/** * @inheritdoc */ protected function getDropDownList($id) { if (!isset($this->dropDownLists[$id])) { switch ($id) { case 'checkbox-drop-down-list': $this->dropDownLists['checkbox-drop-down-list'] = Html::checkboxInputFilterDropDownList(); break; case 'supplier.name': $this->dropDownLists['supplier.name'] = Html::findDropDownListData('kalibao\\common\\models\\supplier\\Supplier', ['id', 'name'], []); break; default: return []; break; } } return $this->dropDownLists[$id]; }
/** * @inheritdoc */ protected function getDropDownList($id) { if (!isset($this->dropDownLists[$id])) { switch ($id) { case 'checkbox-drop-down-list': $this->dropDownLists['checkbox-drop-down-list'] = Html::checkboxInputFilterDropDownList(); break; case 'google_shopping_category.id': $this->dropDownLists['google_shopping_category.id'] = Html::findDropDownListData('kalibao\\common\\models\\googleShoppingCategory\\GoogleShoppingCategory', ['id', 'id'], []); break; case 'affiliation_category.id': $this->dropDownLists['affiliation_category.id'] = Html::findDropDownListData('kalibao\\common\\models\\affiliationCategory\\AffiliationCategory', ['id', 'id'], []); break; default: return []; break; } } return $this->dropDownLists[$id]; }
/** * @inheritdoc */ protected function getDropDownList($id) { if (!isset($this->dropDownLists[$id])) { switch ($id) { case 'checkbox-drop-down-list': $this->dropDownLists[$id] = Html::checkboxInputFilterDropDownList(); break; case 'user.status': $statusLabel = User::statusLabels(); $this->dropDownLists[$id] = ['' => Yii::t('kalibao', 'input_select'), User::STATUS_ENABLED => $statusLabel[User::STATUS_ENABLED], User::STATUS_DISABLED => $statusLabel[User::STATUS_DISABLED]]; break; case 'user.status:required': $statusLabel = User::statusLabels(); $this->dropDownLists[$id] = [User::STATUS_ENABLED => $statusLabel[User::STATUS_ENABLED], User::STATUS_DISABLED => $statusLabel[User::STATUS_DISABLED]]; break; default: return []; break; } } return $this->dropDownLists[$id]; }
/** * @inheritdoc */ protected function getDropDownList($id) { if (!isset($this->dropDownLists[$id])) { switch ($id) { case 'language_group_i18n.title': $this->dropDownLists['language_group_i18n.title'] = Html::findDropDownListData('kalibao\\common\\models\\languageGroup\\LanguageGroupI18n', ['language_group_id', 'title'], [['i18n_id' => Yii::$app->language]]); break; case 'language_i18n.title': $this->dropDownLists['language_i18n.title'] = Html::findDropDownListData('kalibao\\common\\models\\language\\LanguageI18n', ['language_id', 'title'], [['i18n_id' => Yii::$app->language]]); break; case 'checkbox-drop-down-list': $this->dropDownLists['checkbox-drop-down-list'] = Html::checkboxInputFilterDropDownList(); break; default: return []; break; } } return $this->dropDownLists[$id]; }