Gc\Media\File::remove PHP Method

remove() public method

Remove image
public remove ( string $filename ) : boolean
$filename string Filename
return boolean
    public function remove($filename)
    {
        $file = $this->getPath() . $filename;
        if (file_exists($file)) {
            @unlink($file);
        }
        return true;
    }

Usage Example

Esempio n. 1
0
 /**
  * Test
  *
  * @return void
  */
 public function testRemove()
 {
     $this->assertTrue($this->object->remove('undefined-file'));
 }
All Usage Examples Of Gc\Media\File::remove