PHP Класс AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes

С версии: 3.6.0
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$aCustomFieldTypeLabels
$aCustomFieldTypes
$oFactory Stores the admin page factory object.

Открытые методы

Метод Описание
__construct ( $oFactory, $sSectionID ) Sets up hooks and properties.
_replyToSetPrefix ( &$sClassName, $sKey, $sPrefix = '' ) : string
replyToModifyFileContents ( $sFileContents, $sPathInArchive, $aFormData, $oFactory ) : string Modifies the file contents.
replyToSetAdditionalDirectoriesForGenerator ( $aDirPaths ) : array Inserts extra archive directories of custom field types chosen by the user.

Приватные методы

Метод Описание
_getClassListOfCustomFieldTypes ( ) : string
_getClassNameIfSelected ( $sPathInArchive ) : string | boolean Retrieves the custom field type class name from the given archive path.
_getClassNamesPrefixed ( $sFileContents ) : string Modifies the given content by replacing the class names with a prefix.
_getClassPrefixRegexPatterns ( array $aSelectedFieldTypeClassNames ) : array Returns an array holding regular expressions needle patterns for class names.
_getClassPrefixRegexReplacements ( array $aSelectedFieldTypeClassNames ) : array Returns an array holding regular expressions replacements for class names.
_getModifiedFileContents ( $sFileContents, $sPathInArchive, $sParsingClassName ) : string Modify the file contents of the given path.
_getModifiedInclusionList ( $sFileContents ) : string Modifies the class include list.
_getSelectedCustomFieldTypes ( array $aSubject = [] ) : array
_setProperties ( ) : void Sets up properties.

Описание методов

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

Sets up hooks and properties.
public __construct ( $oFactory, $sSectionID )

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

С версии: 3.6.0
С версии: 3.8.4 Changed it for regular expression patterns.
public _replyToSetPrefix ( &$sClassName, $sKey, $sPrefix = '' ) : string
Результат string

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

Modifies the file contents.
С версии: 3.6.0
public replyToModifyFileContents ( $sFileContents, $sPathInArchive, $aFormData, $oFactory ) : string
Результат string

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

Structure: Archive directory path => Source directory path array( 'custom-field-types/my-custom-field-type' => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/my-custom-field-type', )
С версии: 3.6.0
public replyToSetAdditionalDirectoriesForGenerator ( $aDirPaths ) : array
Результат array

Описание свойств

$aCustomFieldTypeLabels публичное свойство

public $aCustomFieldTypeLabels

$aCustomFieldTypes публичное свойство

public $aCustomFieldTypes

$oFactory публичное свойство

Stores the admin page factory object.
public $oFactory