获取分类菜单
@return array|null
765917
public function getCategoryMenus()
    {
        if ($this->_categoryMenus === null) {
            $this->setCategoryMenus($this->categoryMenus());
        }
        return $this->_categoryMenus;
    }
271423
public function getValue()
    {
        if ( ! isset($this->input[$this->inputName])) {
            return null;
        }

        return $this->input[$this->inputName];
    }
835651
public function count() {
		if ($this->count === null) {
			$groupPart = $this->select->getPart(Select::GROUP);
			
			$select = empty($groupPart)
				? $this->prepareSelect(clone $this->select)
				: $this->prepareSubquerySelect(clone $this->select);
			
			$this->count = (int) $select->query(PDO::FETCH_OBJ)->fetch()->{self::COUNT_COLUMN};
		}
		
		return $this->count;
	}
1280779
public function getArray()
  {
    $errors = empty($this->errors) ? null : $this->errors;

    $response = array(
        'status' => $this->getStatus(),
        'data'   => $this->data,
        'errors' => $errors,
    );

    if (!is_null($this->code)) {
      $response['code'] = $this->code;
    }

    if (!is_null($this->message)) {
      $response['message'] = $this->message;
    }

    return $response;
  }
1218213
public function getData()
	{
		return !empty($this->data) ? $this->data : $this->getResponse([
			'sort' => $this->sort_column,
			'order' => $this->order_column,
			'limit' => $this->limit,
			'offset' => $this->offset,
			'filter' => $this->filter,
			'one' => $this->filter_one,
		]);
	}
1283637
public function getValue()
    {
        $values = [];
        foreach($this->values as $key => $value) {
            $values[$key] = $value->getValue();
        }
        return $values;
    }
1344801
public function error()
    {

        $res = $this->response();

        if (!$res) {
            return null;
        }

        if ($this->ok()) {
            return null;
        }

        $message = ($res->getStatusCode() ? $res->getStatusCode() . ' ' : '') .
                   ($res->getReasonPhrase() ? $res->getReasonPhrase() : 'Unknown response reason phrase');

        try {

            $data = $this->json();

            if (!empty($data->message)) {
                $message = $data->message;
            }

            if (!empty($data->error_description)) {
                $message = $data->error_description;
            }

            if (!empty($data->description)) {
                $message = $data->description;
            }

        } catch (Exception $e) {
            // This should never happen
            $message .= ' (and additional error happened during JSON parse: ' . $e->getMessage() . ')';
        }

        return $message;

    }
1136701
public function getToken()
  {

    if ($this->has('token'))
    {
      return $this->get('token');
    }

    if ($this->has('access_token'))
    {
      return $this->get('access_token');
    }

    if ($this->has('accessToken'))
    {
      return $this->get('accessToken');
    }

    if ($authorization = $this->getHeader('AUTHORIZATION'))
    {
      return $authorization;
    }

    return null;
  }
472477
public function getHeaders()
    {
        $headers = $this->response->getHeaders();
        $result = array();
        if(!is_array($headers)) {
            return $result;
        }
        foreach ($headers as $part) {
            $middle=explode(": ",$part,2);
            if(count($middle) == 2){
                $result[trim($middle[0])] = trim($middle[1]);
            }
        }
        return $result;
    }
190930
public function getContent()
    {
        $contentAttribute = $this->contentAttribute;
        if ($contentAttribute === false) {
            return null;
        }
        if (is_array($contentAttribute)) {
            $content = [];
            foreach ($contentAttribute as $key => $value) {
                $content[$key] = $this->$value;
            }
            return $content;
        }
        return $this->$contentAttribute;
    }
711232
public function getGroupName()
    {
        $userId = $this->getGroup();
        if ($userId) {
            $userData = posix_getgrgid($userId);
            return ((isset($userData['name'])) ? $userData['name'] : null);
        }
        return false;
    }
506498
protected function _group()
    {
        $result = [];
        foreach ($this->_parts['group'] as $name => $value) {
            $result[] = $this->dialect()->name($name);
        }
        return $fields = join(', ', $result);
    }
382398
public function getDescription()
    {
        if(array_key_exists(self::ITEM_DESCRIPTION, $this->_itemData)) {
            return (string) $this->_itemData[self::ITEM_DESCRIPTION];
        }
        return null;
    }
10283
public function key()
	{
		$keys	= array_keys( $this->pairs );
		return $this->position < $this->count() ? $keys[$this->position] : NULL;
	}
737402
public function getGroup()
    {
        if (! $this->_group) {
            $this->_group = $this->userLoader->getGroup($this->getGroupId());
        }

        return $this->_group;
    }
55477
public function first()
	{
		$set = array_slice($this->list, 0, 1, true);
		
		return isset($set[0]) ? $set[0] : null;
	}
99359
public function getHeaders()
    {
        return isset($this->rows[ self::HEADER_INDEX ])
            ? $this->rows[ self::HEADER_INDEX ]
            : null;
    }