PHP 클래스 Hookr_Plugin, hookr-plugin

상속: extends Hookr_Singleton
파일 보기 프로젝트 열기: explodybits/hookr-plugin 1 사용 예제들

공개 메소드들

메소드 설명
activate ( ) : void Executes during plugin activation.
deactivate ( ) : void Executes during plugin deactivation.
field_id ( string $id ) Echos the element id attribute value.
field_name ( string $name ) Echos the name attribute value.
get_field_id ( string $id ) : string Creates an element id attribute value in WP's slug format.
get_field_name ( string $name ) : string Creates an name attribute value in array format.
get_file ( ) Returns entry-point file for plugin.
get_render ( string $tpl, array $data = [] ) : string Returns the contents of a rendered template.
get_slug ( ) : string Returns the slug representing this class.
init ( ) Plugin entry-point.
load ( ) : void Executes after 'plugins_loaded' hook.
loaded ( ) : void Executes after 'init' hook.
render ( string $tpl, array $data = [] ) Echos the renderd template.

보호된 메소드들

메소드 설명
get_instance ( string $class = __CLASS__ ) : object Returns the Hookr_Plugin derived instance.

메소드 상세

activate() 공개 메소드

Executes during plugin activation.
public activate ( ) : void
리턴 void

deactivate() 공개 메소드

Executes during plugin deactivation.
public deactivate ( ) : void
리턴 void

field_id() 공개 메소드

Echos the element id attribute value.
또한 보기: self::get_field_id()
public field_id ( string $id )
$id string

field_name() 공개 메소드

Echos the name attribute value.
또한 보기: self::get_field_name()
public field_name ( string $name )
$name string

get_field_id() 공개 메소드

Creates an element id attribute value in WP's slug format.
public get_field_id ( string $id ) : string
$id string
리턴 string

get_field_name() 공개 메소드

Creates an name attribute value in array format.
public get_field_name ( string $name ) : string
$name string
리턴 string

get_file() 공개 메소드

Returns entry-point file for plugin.
public get_file ( )

get_instance() 보호된 정적인 메소드

Returns the Hookr_Plugin derived instance.
protected static get_instance ( string $class = __CLASS__ ) : object
$class string
리턴 object Instance of Hookr_Plugin

get_render() 공개 메소드

Returns the contents of a rendered template.
또한 보기: self::render()
public get_render ( string $tpl, array $data = [] ) : string
$tpl string
$data array
리턴 string

get_slug() 공개 메소드

Returns the slug representing this class.
public get_slug ( ) : string
리턴 string

init() 공개 정적인 메소드

Plugin entry-point.
public static init ( )

load() 공개 메소드

Executes after 'plugins_loaded' hook.
public load ( ) : void
리턴 void

loaded() 공개 메소드

Executes after 'init' hook.
public loaded ( ) : void
리턴 void

render() 공개 메소드

Echos the renderd template.
public render ( string $tpl, array $data = [] )
$tpl string
$data array