Пример #1
0
 public function getIndustryNames()
 {
     if (is_array($this->industries)) {
         $items = ArrayHelper::map(JobIndustry::find()->where(['in', '_id', $this->industries])->asArray()->all(), '_id', 'title');
     } else {
         $items = ArrayHelper::map(JobIndustry::find()->where(['_id' => $this->industries])->asArray()->all(), '_id', 'title');
     }
     return implode('; ', $items);
 }
Пример #2
0
 public function getIndustryNames()
 {
     $items = array();
     if ($this->industry and is_array($this->industry)) {
         $items = ArrayHelper::map(JobIndustry::find()->where(['in', '_id', $this->industry])->asArray()->all(), '_id', 'title');
     }
     return implode('<br/>', $items);
 }