PHP Class app\helpers\FileWorker

Show file Open project: andrey900/slimcms Class Usage Examples

Public Properties

Property Type Description
$mode

Public Methods

Method Description
addItemInModelsFillable ( $modelName, $fieldName )
copy ( $source, $target )
getJsonDataFile ( $path )
mkDir ( $path )
removeItemInModelsFillable ( $modelName, $fieldName )
replaseInFile ( $file, $arIn, $arOut )
saveFile ( $pathFileName, $str )
saveJsonFile ( $pathFileName, $data )
savePhpReturnFile ( $pathFileName, $data )

Protected Methods

Method Description
workInModel ( $modelName, $fieldName, $type )

Method Details

addItemInModelsFillable() public static method

public static addItemInModelsFillable ( $modelName, $fieldName )

copy() public static method

public static copy ( $source, $target )

getJsonDataFile() public static method

public static getJsonDataFile ( $path )

mkDir() public static method

public static mkDir ( $path )

removeItemInModelsFillable() public static method

public static removeItemInModelsFillable ( $modelName, $fieldName )

replaseInFile() public static method

public static replaseInFile ( $file, $arIn, $arOut )

saveFile() public static method

public static saveFile ( $pathFileName, $str )

saveJsonFile() public static method

public static saveJsonFile ( $pathFileName, $data )

savePhpReturnFile() public static method

public static savePhpReturnFile ( $pathFileName, $data )

workInModel() protected static method

protected static workInModel ( $modelName, $fieldName, $type )

Property Details

$mode public static property

public static $mode