Beispiel #1
0
 /**
  * 创建标签
  *
  * @access public
  * @param string name 标签名称
  * @return void
  */
 public function createNoAccessToken()
 {
     #参数检查
     $GLOBALS['userId'] = 1;
     $this->params = $this->require_params(array('name', 'type'));
     if ($this->params['type'] == self::USER_PROFILE_TAG) {
         $this->params = $this->require_params(array('keyName'));
     }
     $this->params['color'] = F::request('color', '');
     $this->params['name'] = trim($this->params['name']);
     #创建标签
     $this->tagModel->create($this->params['name'], $this->params['type'], $this->params['color'], $GLOBALS['userId'], $this->params['keyName']);
     $this->userLog($GLOBALS['userId'], __CLASS__ . '/' . __FUNCTION__, serialize($this->params));
     F::rest()->show_result();
 }