1 | <?php |
||
18 | abstract class AdminPageFramework_Widget extends AdminPageFramework_Widget_Controller { |
||
19 | |||
20 | /** |
||
21 | * Defines the class object structure type. |
||
22 | * |
||
23 | * This is used to create a property object as well as to define the form element structure. |
||
24 | * |
||
25 | * @since 3.2.0 |
||
26 | * @since 3.7.0 Changed the name from `$_sFieldsType`. |
||
27 | * @internal |
||
28 | */ |
||
29 | protected $_sStructureType = 'widget'; |
||
30 | |||
31 | /** |
||
32 | * The constructor of the class object. |
||
33 | * |
||
34 | * Registers necessary hooks and sets up internal properties. |
||
35 | * |
||
36 | * <h4>Example</h4> |
||
37 | * <code> |
||
38 | * new APF_Widget( __( 'Admin Page Framework', 'admin-page-framework-demo' ) ); // the widget title |
||
39 | * new APF_Widget_CustomFieldTypes( __( 'APF - Advanced', 'admin-page-framework-demo' ) ); |
||
40 | * new APF_Widget_Example( __( 'APF - GitHub Button', 'admin-page-framework-demo' ) ); |
||
41 | * </code> |
||
42 | * |
||
43 | * @return void |
||
|
|||
44 | */ |
||
45 | public function __construct( $sWidgetTitle, $aWidgetArguments=array(), $sCapability='edit_theme_options', $sTextDomain='admin-page-framework' ) { |
||
70 | |||
71 | } |
||
72 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.