PHP Class gb_admin, gitblog

Mostra file Open project: rsms/gitblog Class Usage Examples

Public Properties

Property Type Description
$current_domid # resolved by render_menu
$menu Item prototype: [string accesskey =>] array( string title [, string uri [, array( item .. )]] )
$url

Public Methods

Method Description
abrupt_rsp ( $body = '', $status = '200 OK', $content_type = 'text/plain; charset=utf-8', $exit = true )
error_rsp ( $msg, $status = '400 Bad Request', $content_type = 'text/plain; charset=utf-8', $exit = true )
json_rsp ( $data = null, $status = '200 OK', $exit = true, $pretty = true )
mkdirs ( $path, $maxdepth = 999, $mode = 509 )
render_menu ( $menu_disabled = false, $items = null, $baseurl = null, $currurlpath = null, $liststart = '<ul>', $listend = '</ul>' )
write_content ( GBContent $obj ) Write blob version of $obj. Returns path written to or false if write was not needed.

Method Details

abrupt_rsp() static public method

static public abrupt_rsp ( $body = '', $status = '200 OK', $content_type = 'text/plain; charset=utf-8', $exit = true )

error_rsp() static public method

static public error_rsp ( $msg, $status = '400 Bad Request', $content_type = 'text/plain; charset=utf-8', $exit = true )

json_rsp() static public method

static public json_rsp ( $data = null, $status = '200 OK', $exit = true, $pretty = true )

mkdirs() static public method

static public mkdirs ( $path, $maxdepth = 999, $mode = 509 )

render_menu() public method

public render_menu ( $menu_disabled = false, $items = null, $baseurl = null, $currurlpath = null, $liststart = '<ul>', $listend = '</ul>' )

write_content() static public method

Write blob version of $obj. Returns path written to or false if write was not needed.
static public write_content ( GBContent $obj )
$obj GBContent

Property Details

$current_domid public_oe static_oe property

# resolved by render_menu
public static $current_domid

$menu public_oe static_oe property

Item prototype: [string accesskey =>] array( string title [, string uri [, array( item .. )]] )
public static $menu

$url public_oe static_oe property

public static $url