PHP 클래스 gb_admin, gitblog

파일 보기 프로젝트 열기: rsms/gitblog 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$current_domid # resolved by render_menu
$menu Item prototype: [string accesskey =>] array( string title [, string uri [, array( item .. )]] )
$url

공개 메소드들

메소드 설명
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.

메소드 상세

abrupt_rsp() 정적인 공개 메소드

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

error_rsp() 정적인 공개 메소드

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

json_rsp() 정적인 공개 메소드

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

mkdirs() 정적인 공개 메소드

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

render_menu() 공개 메소드

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

write_content() 정적인 공개 메소드

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

프로퍼티 상세

$current_domid 공개적으로 정적으로 프로퍼티

# resolved by render_menu
public static $current_domid

$menu 공개적으로 정적으로 프로퍼티

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

$url 공개적으로 정적으로 프로퍼티

public static $url