PHP Class phplinter\Path

Exibir arquivo Open project: robotis/PHPLinter Class Usage Examples

Public Methods

Method Description
del_recursive ( $root ) ----------------------------------------------------------------------+
find ( $directory, $match, $ignore = null ) : Array ----------------------------------------------------------------------+
scan ( $directory, $func, $match, $ignore = '/^(\..*|CVS)$/' ) ----------------------------------------------------------------------+
write_file ( $file, $content, $mode = 'w', $perm = 436 ) : Bool ----------------------------------------------------------------------+

Method Details

del_recursive() public static method

----------------------------------------------------------------------+
public static del_recursive ( $root )
$root String ----------------------------------------------------------------------+

find() public static method

----------------------------------------------------------------------+
public static find ( $directory, $match, $ignore = null ) : Array
$directory String
$match String REGEX
$ignore String REGEX
return Array ----------------------------------------------------------------------+

scan() public static method

----------------------------------------------------------------------+
public static scan ( $directory, $func, $match, $ignore = '/^(\..*|CVS)$/' )
$directory String root_path
$func String user function
$match String REGEX
$ignore String REGEX

write_file() public static method

----------------------------------------------------------------------+
public static write_file ( $file, $content, $mode = 'w', $perm = 436 ) : Bool
$file String
$content String
$mode String [r,r+,w,w+,a,a+,x,x+][bt]
$perm Oct
return Bool ----------------------------------------------------------------------+