PHP 클래스 PodsWidgetSingle, pods

상속: extends WP_Widget
파일 보기 프로젝트 열기: pods-framework/pods

공개 메소드들

메소드 설명
__construct ( string $id_base = 'pods_widget_single', string $name = 'Pods - Single Item', array $widget_options = [], array $control_options = [] ) Register the widget
form ( $instance ) Widget Form
update ( $new_instance, $old_instance ) Updates the new instance of widget arguments
widget ( $args, $instance ) Output of widget

메소드 상세

__construct() 공개 메소드

Register the widget
부터: 2.5.4 Note: params are totally ignored. Included for the sake of strict standards.
public __construct ( string $id_base = 'pods_widget_single', string $name = 'Pods - Single Item', array $widget_options = [], array $control_options = [] )
$id_base string Optional Base ID for the widget, lowercase and unique. If left empty, a portion of the widget's class name will be used Has to be unique.
$name string Name for the widget displayed on the configuration page.
$widget_options array Optional. Widget options. See {@see \wp_register_sidebar_widget()} for information on accepted arguments. Default empty array.
$control_options array Optional. Widget control options. See {@see \wp_register_widget_control()} for information on accepted arguments. Default empty array.

form() 공개 메소드

Widget Form
public form ( $instance )

update() 공개 메소드

Updates the new instance of widget arguments
public update ( $new_instance, $old_instance )

widget() 공개 메소드

Output of widget
public widget ( $args, $instance )