Property | Type | Description | |
---|---|---|---|
$m_caseSensitive | |||
$m_fileExtensions | |||
$m_findAllExtensions | |||
$m_isReplaceEnabled | |||
$m_replacementKey | |||
$m_searchKey | |||
$m_totalFound |
Method | Description | |
---|---|---|
addExtension ( string $p_extension ) | Add a valid search extension. | |
filePutContents ( string $p_file, mixed $p_data ) : mixed | Puts data (after replacement) to given file. | |
findExtension ( string $p_file ) : mixed | Finds the extension for the given file. | |
findReplace ( string $p_path ) | searchDirFiles() wrapper function. | |
matchedExtension ( string $p_file ) : boolean | Checks if a file extension is one the extensions we are going to search. | |
searchDirFiles ( string $p_path ) : array | Runs recursively all into the path. | |
searchFileData ( string $p_file ) | Searches file data and replaces with given pattern. | |
setExtensions ( array $p_extensions = [] ) | Sets extensions to search for. | |
setReplacementKey ( string $p_replacementKey ) | Sets the replacement to replace pattern with. | |
setSearchKey ( string $p_searchKey, integer $p_caseSensitive ) | Sets the pattern and case sensitivity. |
public addExtension ( string $p_extension ) | ||
$p_extension | string |
public findExtension ( string $p_file ) : mixed | ||
$p_file | string | |
return | mixed | the extension on success or NULL on failure |
public findReplace ( string $p_path ) | ||
$p_path | string |
public matchedExtension ( string $p_file ) : boolean | ||
$p_file | string | |
return | boolean | true on success or false on failure |
public searchDirFiles ( string $p_path ) : array | ||
$p_path | string | |
return | array |
public searchFileData ( string $p_file ) | ||
$p_file | string |
public setExtensions ( array $p_extensions = [] ) | ||
$p_extensions | array |
public setReplacementKey ( string $p_replacementKey ) | ||
$p_replacementKey | string |
public setSearchKey ( string $p_searchKey, integer $p_caseSensitive ) | ||
$p_searchKey | string | |
$p_caseSensitive | integer |