Ejemplo n.º 1
0
            $mark = new mark();
            $markData = array('source' => 'topic', 'source_id' => $topic_ids, 'state' => $state, 'type_state' => 'team');
            $mark->update_mark_state($markData);
            if ($state == 0) {
                //删除话题搜索
                $this->teamApi->delete_search($topic_ids, 'topic');
            } elseif ($state == 1) {
                //插入话题搜索
                $this->teamApi->add_search($topic_ids, 'topic');
            }
            //删除话题
            $this->topic->update(array('state' => $state, 'type_state' => 'team'), $topic_ids);
        }
    }
    /**
	 * 删除小组所有信息
	 * @param String $ids
	 */
    public function real_del()
    {
        $team_ids = trim(urldecode($this->input['team_id']));
        //删除小组的关注
        $option = new option();
        $attenData = array('source' => 'team', 'source_id' => $team_ids, 'action' => 'attention');
        $option->delete($attenData);
        //删除小组的标签
        $mark = new mark();
        $markData = array('source' => 'team', 'source_id' => $team_ids, 'action' => 'team_tag');
        $mark->delete_source_id_mark($markData);
        //删除小组的主题标签
        $themeMarkData = array('source' => 'team', 'source_id' => $team_ids, 'action' => 'team_theme');
        $mark->delete_source_id_mark($themeMarkData);
        //删除小组下的行动召集者
        $this->team->del_apply($team_ids);
        //删除小组下的黑名单
Ejemplo n.º 2
0
		$this->addItem($result);
		$this->output();
	}
	*/
    /*
	//批量审核话题数据
	public function audit()
	{	
		$topic_ids = $this->validate_data();
		$result = $this->topic->update(array('state' => 1), $topic_ids);
		$this->setXmlNode('topic_info', 'topic');
		$this->addItem($result);
		$this->output();
	}
	*/
    /*
	//批量打回(屏蔽)话题数据
	public function back()
	{
		$topic_ids = $this->validate_data();
		$result = $this->topic->update(array('state' => -1), $topic_ids);
		$this->setXmlNode('topic_info', 'topic');
		$this->addItem($result);
		$this->output();
	}