APF_Widget::load PHP Метод

load() публичный Метод

Alternatively you may use load_{instantiated class name} method.
public load ( $oAdminWidget )
    public function load($oAdminWidget)
    {
        $this->addSettingFields(array('field_id' => 'title', 'type' => 'text', 'title' => __('Title', 'admin-page-framework-loader'), 'default' => __('Hi there!', 'admin-page-framework-loader'), 'tip' => __('We can create fields in the widget form.', 'admin-page-framework-loader')), array('field_id' => 'repeatable_text', 'type' => 'text', 'title' => __('Text Repeatable', 'admin-page-framework-loader'), 'repeatable' => true, 'sortable' => true), array('field_id' => 'textarea', 'type' => 'textarea', 'title' => __('Text Area', 'admin-page-framework-loader')), array('field_id' => 'checkbox', 'type' => 'checkbox', 'title' => __('Check Box', 'admin-page-framework-loader'), 'label' => __('This is a check box in a widget form.', 'admin-page-framework-loader')), array('field_id' => 'radio', 'type' => 'radio', 'title' => __('Radio Buttons', 'admin-page-framework-loader'), 'label' => array('one' => __('One', 'admin-page-framework-loader'), 'two' => __('Two', 'admin-page-framework-loader'), 'three' => __('Three', 'admin-page-framework-loader')), 'default' => 'two'), array('field_id' => 'select', 'type' => 'select', 'title' => __('Dropdown', 'admin-page-framework-loader'), 'label' => array('i' => __('I', 'admin-page-framework-loader'), 'ii' => __('II', 'admin-page-framework-loader'), 'iii' => __('III', 'admin-page-framework-loader'))), array('field_id' => 'image', 'type' => 'image', 'title' => __('Image', 'admin-page-framework-loader')), array('field_id' => 'media', 'type' => 'media', 'title' => __('Media', 'admin-page-framework-loader')), array('field_id' => 'color', 'type' => 'color', 'title' => __('Color', 'admin-page-framework-loader')));
    }