PHPFusion\UserFields::renderPageLink PHP Метод

    private function renderPageLink()
    {
        global $aidlink;
        $section = array();
        $result = dbquery("SELECT * FROM " . DB_USER_FIELD_CATS . " WHERE field_parent='0' ORDER BY field_cat_order");
        if (dbrows($result) > 0) {
            $aid = isset($_GET['aid']) ? $aidlink . '&' : '';
            $i = 0;
            while ($data = dbarray($result)) {
                $section[$data['field_cat_id']] = array("id" => $data['field_cat_id'], 'active' => isset($_GET['section']) && $_GET['section'] == $data['field_cat_id'] ? 1 : (!isset($_GET['section']) && $i == 0 ? 1 : 0), 'link' => clean_request($aid . 'section=' . $data['field_cat_id'] . '&lookup=' . $this->userData['user_id'], array('section'), FALSE), 'name' => ucwords(self::parse_label($data['field_cat_name'])));
                $i++;
            }
        }
        return $section;
    }