PHP Class Newscoop\Services\FilesystemService

Show file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager

Public Methods

Method Description
__construct ( EntityManager $em ) Constructor
isReadable ( string $fileName, boolean $message = true ) : boolean Check if file is isReadable
sanitizeFileName ( string $fileName ) : string Makes a file name safe to use.

Method Details

__construct() public method

Constructor
public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager

isReadable() public static method

Check if file is isReadable
public static isReadable ( string $fileName, boolean $message = true ) : boolean
$fileName string
$message boolean Show message
return boolean

sanitizeFileName() public method

Makes a file name safe to use.
public sanitizeFileName ( string $fileName ) : string
$fileName string
return string

Property Details

$em protected property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager