public function removePortraitImage()
    {
        $sizes = $this->_mixer->getValue('sizes');

        if (empty($sizes)) {
            $sizes = explode(' ', 'original large medium small thumbnail square');
        } else {
            $sizes = array_keys($sizes);
        }

        foreach ($sizes as $size) {
            $file = $this->_mixer->getPortraitFile($size);
            $this->_mixer->deletePath($file);
        }

        $this->set('filename', null);
    }
public function removePortraitImage()
    {
        $sizes = $this->_mixer->getValue('sizes');

        if (empty($sizes)) {
            $sizes = explode(' ', 'original large medium small thumbnail square');
        } else {
            $sizes = array_keys($sizes);
        }

        foreach ($sizes as $size) {
            $file = $this->_mixer->getPortraitFile($size);
            $this->_mixer->deletePath($file);
        }

        $this->set('filename', null);
    }
public function removePortraitImage ( ) { $ sizes = $ this -> _mixer -> getValue ( 'sizes' ) ; if ( empty ( $ sizes ) ) { $ sizes = explode ( ' ' , 'original large medium small thumbnail square' ) ; } else { $ sizes = array_keys ( $ sizes ) ; } foreach ( $ sizes as $ size ) { $ file = $ this -> _mixer -> getPortraitFile ( $ size ) ; $ this -> _mixer -> deletePath ( $ file ) ; } $ this -> set ( 'filename' , null ) ; }
Removes the portrait image.
Removes the portrait image .