Example #1
0
 /**
  * 
  * 
  * 
  * @param array $config
  * @return type
  */
 public static function getSelectData(array $config = [])
 {
     $model = new self($config);
     $query = $model->_getTagQuery()->union($model->_getKeywordQuery());
     $custom = $model->_getCustomQuery();
     if (isset($custom)) {
         $query->union($custom);
     }
     return \yii\helpers\ArrayHelper::map($query->asArray()->all(), 'id', 'name');
 }