public function deleteExtendInfo($_fieldid) { include CUR_CONF_PATH . 'lib/extendInfo.class.php'; $extendInfo = new extendInfo(); $sql = "SELECT field FROM " . DB_PREFIX . "extendfield WHERE 1" . $this->where_id($_fieldid); $query = $this->db1->query($sql); $field = array(); while ($row = $this->db1->fetch_array($query)) { $field['field'][] = $row['field']; } $extendInfo->delete($field); }
public function updateExtend($user_id = 0, $extendEditInfo = array(), $isRe = false) { include CUR_CONF_PATH . 'lib/extendInfo.class.php'; $extendInfo = new extendInfo(); $user_id = $user_id ? $user_id : intval($this->input['user_id']); $reData = false; if (!$isRe && $this->checkUser($user_id)) { $extendEditInfo = $extendEditInfo ? $extendEditInfo : $this->input['extendInfo']; $reData = $extendInfo->extendEdit($user_id, $extendEditInfo); } if ($isRe) { return $reData; } $this->addItem($reData); $this->output(); }
public function getUserExtendInfo($user_id = 0) { $user_id = $user_id ? $user_id : $this->user['user_id']; $UserExtend = array(); //extendinfo表数据 $reUserExtend = array(); //返回数据 if (empty($user_id)) { return $Userextend; } $extendInfo = new extendInfo(); $UserExtend = $extendInfo->show(" AND user_id = " . $user_id); $reUserExtend = $extendInfo->extendDataProcess($UserExtend, 0); return $reUserExtend; }