AdminPageFramework_FieldType_media::_getFormattedUploadButtonAttributes_Media PHP Метод

_getFormattedUploadButtonAttributes_Media() приватный Метод

private _getFormattedUploadButtonAttributes_Media ( $sInputID, array $aButtonAttributes, $_bIsLabelSet, $bExternalSource )
$aButtonAttributes array
    private function _getFormattedUploadButtonAttributes_Media($sInputID, array $aButtonAttributes, $_bIsLabelSet, $bExternalSource)
    {
        $_aAttributes = array('id' => "select_media_{$sInputID}", 'href' => '#', 'data-uploader_type' => (string) function_exists('wp_enqueue_media'), 'data-enable_external_source' => (string) (bool) $bExternalSource) + $aButtonAttributes + array('title' => $_bIsLabelSet ? $aButtonAttributes['data-label'] : $this->oMsg->get('select_file'), 'data-label' => null);
        $_aAttributes['class'] = $this->getClassAttribute('select_media button button-small ', $this->getAOrB(trim($aButtonAttributes['class']), $aButtonAttributes['class'], $this->getAOrB(!$_bIsLabelSet && version_compare($GLOBALS['wp_version'], '3.8', '>='), 'dashicons dashicons-portfolio', '')));
        return $_aAttributes;
    }