PHP 클래스 AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator

부터: 3.5.4
상속: extends AdminPageFrameworkLoader_AdminPage_Section_Base
파일 보기 프로젝트 열기: michaeluno/admin-page-framework

공개 프로퍼티들

프로퍼티 타입 설명
$oFactory Stores the admin page factory object.

공개 메소드들

메소드 설명
_replyToModifyFileContents ( $sFileContents, $sPathInArchive ) : string Modifies the file contents of the archive.
_replyToModifyPathInArchive ( string $sPathInArchive ) : string Modifies the path in the archive which include the file name.
_replyToModifyPathName ( $aMatches ) Modifies the regex-matched string.
addFields ( $oFactory, $sSectionID ) : void Adds form fields.
replyToDownloadFramework ( $aSavedData, $sSubmittedFieldID, $sSubmittedInputID, $oAdminPage ) Lets the user download their own version of Admin Page Framework.
replyToFilterFileName ( $sFileName, $sFieldID, $sInputID, $vExportingData, $oAdminPage ) : string Filters the exporting file name.
replyToModifyExportHTTPHeader ( $aHeader, $sFieldID, $sInputID, $mData, $sFileName, $oFactory ) Modifies the HTTP header of the export field.
validate ( $aInput, $aOldInput, $oAdminPage, $aSubmitInfo ) Validates the submitted form data.

보호된 메소드들

메소드 설명
construct ( $oFactory ) : void A user constructor.

비공개 메소드들

메소드 설명
_getCheckedComponents ( ) : array Returns an array holding elements that the user has selected in the form.
_getComponentLabels ( ) : array Returns component labels as an array.
_getDisallowedArchiveDirectoryPaths ( ) : array Returns an array holding allowed paths set to the archive.
_getDownloadFileName ( ) : string Returns the user-set file name.
_getDownloadFrameworkZipFile ( $sFrameworkDirPath, $sDestinationPath ) : string Generates the framework zip data.
_getFormSubmitValueByFieldIDAsString ( $sFieldID ) : string Retrieves the value from the $_POST array by the given field ID.
_isAllowedArchivePath ( $sPath ) : boolean Checks whether the passed archive path is allowed.
_modifyClassName ( $sSubject ) : string Modifies the given class name.
_modifyClassNameByPath ( $sFileContents, $sPathInArchive ) : string Modifies the given file contents.
_modifyClassNameOfInclusionList ( $sFileContents ) : string Modifies the class inclusion list.
_modifyFileDockblock ( $sFileContents ) : string Inserts additional information such as an included component list and a date to the file doc-block (the header comment part).
_modifyTextDomain ( $sFileContents ) : string Modifies the text domain in the given file contents.
_sanitizeFieldValues ( array $aInput, $oAdminPage ) : array Sanitizes user-submitted form field values.

메소드 상세

_replyToModifyFileContents() 공개 메소드

Modifies the file contents of the archive.
부터: 3.5.4
public _replyToModifyFileContents ( $sFileContents, $sPathInArchive ) : string
리턴 string The modified file contents.

_replyToModifyPathInArchive() 공개 메소드

Return an empty string to drop the item.
부터: 3.5.4
public _replyToModifyPathInArchive ( string $sPathInArchive ) : string
$sPathInArchive string The internal path of the archive including the parsing file name.
리턴 string

_replyToModifyPathName() 공개 메소드

Modifies the regex-matched string.
부터: 3.5.4
public _replyToModifyPathName ( $aMatches )

addFields() 공개 메소드

Adds form fields.
부터: 3.5.4
public addFields ( $oFactory, $sSectionID ) : void
리턴 void

construct() 보호된 메소드

A user constructor.
부터: 3.5.4
protected construct ( $oFactory ) : void
리턴 void

replyToDownloadFramework() 공개 메소드

Lets the user download their own version of Admin Page Framework.
부터: 3.5.4
public replyToDownloadFramework ( $aSavedData, $sSubmittedFieldID, $sSubmittedInputID, $oAdminPage )

replyToFilterFileName() 공개 메소드

Filters the exporting file name.
public replyToFilterFileName ( $sFileName, $sFieldID, $sInputID, $vExportingData, $oAdminPage ) : string
리턴 string

replyToModifyExportHTTPHeader() 공개 메소드

Modifies the HTTP header of the export field.
부터: 3.5.4 #return array
public replyToModifyExportHTTPHeader ( $aHeader, $sFieldID, $sInputID, $mData, $sFileName, $oFactory )

validate() 공개 메소드

Validates the submitted form data.
부터: 3.5.4
public validate ( $aInput, $aOldInput, $oAdminPage, $aSubmitInfo )

프로퍼티 상세

$oFactory 공개적으로 프로퍼티

Stores the admin page factory object.
public $oFactory