PHP Class gb_admin, gitblog

Afficher le fichier Open project: rsms/gitblog Class Usage Examples

Méthodes publiques

Свойство Type Description
$current_domid # resolved by render_menu
$menu Item prototype: [string accesskey =>] array( string title [, string uri [, array( item .. )]] )
$url

Méthodes publiques

Méthode 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 méthode

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

error_rsp() static public méthode

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

json_rsp() static public méthode

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

mkdirs() static public méthode

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

render_menu() public méthode

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

write_content() static public méthode

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