/**
  * Provide data for Depdrop options
  * @param type $selected
  *
  * @return mixed
  */
 public function actionDepdropOptions($selected = 0)
 {
     echo \common\helpers\DepdropHelper::getOptionData(['modelClass' => Subdistrict::className(), 'parents' => ['district_id' => function ($value) {
         return $value > 0 ? $value : "";
     }], 'filter' => ['recordStatus' => Subdistrict::RECORDSTATUS_USED], 'selected' => $selected]);
 }
 /**
  * Provide data for Depdrop options
  * @param type $selected
  *
  * @return mixed
  */
 public function actionDepdropOptions($selected = 0)
 {
     echo \common\helpers\DepdropHelper::getOptionData(['modelClass' => RgnCity::className(), 'parents' => ['province_id' => function ($value) {
         return $value > 0 ? $value : "";
     }], 'filter' => ['status' => RgnCity::STATUS_ACTIVE], 'selected' => $selected]);
 }