PHP Class Modman_Command_Create

显示文件 Open project: sitewards/modman-php Class Usage Examples

Public Methods

Method Description
doCreate ( boolean $bForce, boolean $bListHidden = false ) executes create command
setIncludeFile ( string $sFilename ) sets the include file

Private Methods

Method Description
existsModmanFile ( ) : boolean checks if modman file exists
generateLinkListFromDirectoryStructure ( array $aDirectoryStructure, array $aPathElements = [] ) generates link list from directory structure
generateModmanFile ( ) generates modman file
getDirectoryStructure ( string $sDirectoryPath ) : array returns directory structure
getModmanFilePath ( ) : string returns modman file path
isDirectoryEmpty ( string $sDirectoryPath ) : boolean checks if a directory is empty
isHiddenNode ( string $sNode ) : boolean checks if node is a hidden once
isMagentoModuleCodeDirectory ( array $aPathParts, integer $iAppPosition ) : boolean checks if directory is the magento code directory
isMagentoModuleDesignDirectory ( array $aPathParts, integer $iAppPosition ) : boolean checks if directory is the magento design directory
isMagentoModuleDirectory ( string $sDirectoryPathToCheck ) : boolean checks if directory is a magento module

Method Details

doCreate() public method

executes create command
public doCreate ( boolean $bForce, boolean $bListHidden = false )
$bForce boolean - if true errors will be ignored
$bListHidden boolean = false, if true hidden files will be listed

setIncludeFile() public method

sets the include file
public setIncludeFile ( string $sFilename )
$sFilename string