Class AdminPageFramework_MetaBox_Controller
Provides UI related methods.
- AdminPageFramework_Factory_Router
-
AdminPageFramework_Factory_Model
-
AdminPageFramework_Factory_View
-
AdminPageFramework_Factory_Controller
-
AdminPageFramework_Factory
-
AdminPageFramework_MetaBox_Router
-
AdminPageFramework_MetaBox_Model
-
AdminPageFramework_MetaBox_View
-
AdminPageFramework_MetaBox_Controller
Direct known subclasses
Package: AdminPageFramework\MetaBox
Since: 3.3.0
Located at factory/AdminPageFramework_MetaBox/AdminPageFramework_MetaBox_Controller.php
Methods summary
public
|
#
setUp( )
The method for all necessary set-ups. Examplepublic function setUp() { $this->addSettingFields( array( 'field_id' => 'sample_metabox_text_field', 'title' => 'Text Input', 'description' => 'The description for the field.', 'type' => 'text', ), array( 'field_id' => 'sample_metabox_textarea_field', 'title' => 'Textarea', 'description' => 'The description for the field.', 'type' => 'textarea', 'default' => 'This is a default text value.', ) ); } Since
2.0.0
Remark
The user should override this method.
Overrides |
public
array
|
#
enqueueStyles( array $aSRCs, array $aPostTypes = array(), mixed $aCustomArgs = array() )
Enqueues styles by post type. Parameters
Returnsarray The array holing the queued items. Since
3.0.0
|
public
string
|
#
enqueueStyle( string $sSRC, array $aPostTypes = array(), array $aCustomArgs = array() )
Enqueues a style by post type. Parameters
Returnsstring The script handle ID. If the passed url is not a valid url string, an empty string will be returned. Since
3.0.0
See |
public
array
|
#
enqueueScripts( array $aSRCs, array $aPostTypes = array(), mixed $aCustomArgs = array() )
Enqueues scripts by page slug and tab slug. Parameters
Returnsarray The array holding the queued items. Since
3.0.0
|
public
string
|
#
enqueueScript( string $sSRC, string $aPostTypes = array(), string $aCustomArgs = array() )
Enqueues a script by post type. Example$this->enqueueScript( plugins_url( 'asset/js/test.js' , __FILE__ ), // source url or path array( 'my_post_type_slug' ), array( 'handle_id' => 'my_script', // this handle ID also is used as the object name for the translation array below. 'translation' => array( 'a' => 'hello world!', 'style_handle_id' => $sStyleHandle, // check the enqueued style handle ID here. ), ) ); Parameters
Returnsstring The script handle ID. If the passed url is not a valid url string, an empty string will be returned. Since
2.1.2
See |
Methods inherited from AdminPageFramework_MetaBox_View
Methods inherited from AdminPageFramework_MetaBox_Model
_replyToFilterSavingData()
,
_replyToModifyRedirectPostLocation()
,
_setUpValidationHooks()
Methods inherited from AdminPageFramework_MetaBox_Router
Methods inherited from AdminPageFramework_Factory_Controller
addHelpText()
,
addSettingField()
,
addSettingFields()
,
addSettingSection()
,
addSettingSections()
,
hasFieldError()
,
hasSettingNotice()
,
setFieldErrors()
,
setSettingNotice()
Methods inherited from AdminPageFramework_Factory_View
_replyToGetFieldOutput()
,
_replyToPrintSettingNotice()
Methods inherited from AdminPageFramework_Factory_Model
_getFieldErrors()
,
_isValidationErrors()
,
_loadDefaultFieldTypeDefinitions()
,
_registerFields()
,
_replyToDeleteFieldErrors()
,
_replyToSaveFieldErrors()
,
_replyToSaveNotices()
,
_setLastInput()
,
_setUp()
,
getFieldErrors()
,
getSavedOptions()
,
validate()
Methods inherited from AdminPageFramework_Factory_Router
__call()
,
__get()
,
__toString()
,
_getFormInstance()
,
_getHelpPaneInstance()
,
_getLinkInstancce()
,
_getPageLoadInfoInstance()
,
_getResourceInstance()
,
_isInThePage()
,
_isInstantiatable()
,
_replyToLoadComponents()
Magic methods summary
Properties summary
Properties inherited from AdminPageFramework_Factory_Router
$oProp