Seo Osclass如何获取项目的城市区域信息

Seo Osclass如何获取项目的城市区域信息,seo,bing,osclass,Seo,Bing,Osclass,我正在使用Osclass分类网站,我想显示的标题为“出售公寓在城市地区,城市,地区”。我能够获取项目的区域和城市信息,但无法获取城市区域。有人能告诉我可以用来获取城市区域的函数吗?将下面的函数粘贴到oc include/osclass/frm/Item.form.class.php中,并按如下方式调用该函数 这就是我如何在分类广告中获得城市区域的方法 static public function city_area_select($citi_area = null, $item = null)

我正在使用Osclass分类网站,我想显示的标题为“出售公寓在城市地区,城市,地区”。我能够获取项目的区域和城市信息,但无法获取城市区域。有人能告诉我可以用来获取城市区域的函数吗?

将下面的函数粘贴到oc include/osclass/frm/Item.form.class.php中,并按如下方式调用该函数

这就是我如何在分类广告中获得城市区域的方法

static public function city_area_select($citi_area = null, $item = null) {
        if( Session::newInstance()->_getForm('cityArea') != ''){
            $citi_area = null;
        } else {
            if($citi_area==null) { $citi_area = array(); };
        }
        if($item==null) { $item = osc_item(); };
        if( count($citi_area) >= 1 ) {
            if( Session::newInstance()->_getForm('cityAreaId') != "" ) {
                $item['fk_i_city_area_id'] = Session::newInstance()->_getForm('cityAreaId');
            }
            if( Session::newInstance()->_getForm('cityId') != "" ) {
                $item['fk_i_city_id'] = Session::newInstance()->_getForm('cityId');
            }

            parent::generic_select('cityAreaId', $citi_area, 'pk_i_id', 's_name', __('Select a city area..'), (isset($item['fk_i_city_area_id'])) ? $item['fk_i_city_area_id'] : null) ;
            return true ;
        } else {
            if( Session::newInstance()->_getForm('cityArea') != "" ) {
                $item['s_city_area'] = Session::newInstance()->_getForm('cityArea');
            }
            parent::generic_input_text('cityArea', (isset($item['s_city_area'])) ? $item['s_city_area'] : null) ;
            return true ;
        }
    }