1 | <?php |
||
19 | abstract class AdminPageFramework_TaxonomyField extends AdminPageFramework_TaxonomyField_Controller { |
||
20 | |||
21 | /** |
||
22 | * Defines the class object structure type. |
||
23 | * |
||
24 | * This is used to create a property object as well as to define the form element structure. |
||
25 | * |
||
26 | * @since 3.0.0 |
||
27 | * @since 3.7.0 Changed the name from `$_sFieldsType`. Changed the default value from `taxonomy`. |
||
28 | * @internal |
||
29 | */ |
||
30 | protected $_sStructureType = 'taxonomy_field'; |
||
31 | |||
32 | /** |
||
33 | * Constructs the class object instance of AdminPageFramework_TaxonomyField. |
||
34 | * |
||
35 | * Handles setting up properties and hooks. |
||
36 | * |
||
37 | * <h4>Examples</h4> |
||
38 | * <code> |
||
39 | * new APF_TaxonomyField( 'apf_sample_taxonomy' ); // taxonomy slug |
||
40 | * </code> |
||
41 | * |
||
42 | * @since 3.0.0 |
||
43 | * @param array|string The taxonomy slug(s). If multiple slugs need to be passed, enclose them in an array and pass the array. |
||
44 | * @param string The option key used for the options table to save the data. By default, the instantiated class name will be applied. |
||
45 | * @param string The access rights. Default: `manage_options`. |
||
46 | * @param string The text domain. Default: `admin-page-framework`. |
||
47 | * @return void |
||
|
|||
48 | */ |
||
49 | function __construct( $asTaxonomySlug, $sOptionKey='', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
||
74 | |||
75 | } |
||
76 |
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.