CMS Made Simple API

cms_admin_tabs
in package

FinalYes

A simple convenience class for creating a tabbed interface in the CMSMS admin console

Tags
license

GPL

since
2.0
author

Robert Campbell

Table of Contents

Methods

end_tab()  : string
End the content portion of a single tab
end_tab_content()  : string
Finish the content portion of the tabbed layout
end_tab_headers()  : string
Finish outputting tab headers
set_current_tab()  : mixed
Set the current active tab
set_tab_header()  : string
Create a tab header
start_tab()  : string
Start the content portion of a specific tab
start_tab_content()  : string
Start the content portion of the tabbed layout
start_tab_headers()  : string
Begin output of tab headers

Methods

end_tab()

End the content portion of a single tab

public static end_tab() : string
Return values
string

end_tab_content()

Finish the content portion of the tabbed layout

public static end_tab_content() : string
Return values
string

end_tab_headers()

Finish outputting tab headers

public static end_tab_headers() : string
Return values
string

set_current_tab()

Set the current active tab

public static set_current_tab(string $tab) : mixed
Parameters
$tab : string

The param key

set_tab_header()

Create a tab header

public static set_tab_header(string $tabid, string $title[, bool $active = FALSE ]) : string
Parameters
$tabid : string

The tab key

$title : string

The title to display in the tab

$active : bool = FALSE

Wether the tab is active or not. If the current active tag matches the $tabid then the tab will be marked as active.

Return values
string

start_tab()

Start the content portion of a specific tab

public static start_tab(string $tabid[, array<string|int, mixed> $params = array() ]) : string
Parameters
$tabid : string

The tab key

$params : array<string|int, mixed> = array()

Array of parameters for the tab

Return values
string

start_tab_content()

Start the content portion of the tabbed layout

public static start_tab_content() : string
Return values
string

start_tab_headers()

Begin output of tab headers

public static start_tab_headers() : string
Return values
string

        
On this page

Search results