PHP Class AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes

Since: 3.6.0
Afficher le fichier Open project: michaeluno/admin-page-framework

Méthodes publiques

Свойство Type Description
$aCustomFieldTypeLabels
$aCustomFieldTypes
$oFactory Stores the admin page factory object.

Méthodes publiques

Méthode Description
__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.

Private Methods

Méthode Description
_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.

Method Details

__construct() public méthode

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

_replyToSetPrefix() public méthode

Since: 3.6.0
Since: 3.8.4 Changed it for regular expression patterns.
public _replyToSetPrefix ( &$sClassName, $sKey, $sPrefix = '' ) : string
Résultat string

replyToModifyFileContents() public méthode

Modifies the file contents.
Since: 3.6.0
public replyToModifyFileContents ( $sFileContents, $sPathInArchive, $aFormData, $oFactory ) : string
Résultat string

replyToSetAdditionalDirectoriesForGenerator() public méthode

Structure: Archive directory path => Source directory path array( 'custom-field-types/my-custom-field-type' => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/my-custom-field-type', )
Since: 3.6.0
public replyToSetAdditionalDirectoriesForGenerator ( $aDirPaths ) : array
Résultat array

Property Details

$aCustomFieldTypeLabels public_oe property

public $aCustomFieldTypeLabels

$aCustomFieldTypes public_oe property

public $aCustomFieldTypes

$oFactory public_oe property

Stores the admin page factory object.
public $oFactory