public function getFilePath(User $receiver)
    {
        $basePath = $this->getOption(self::CONFIG_FILEPATH);
        if (is_null($basePath) || !file_exists($basePath)) {
            throw new \common_exception_InconsistentData('Missing path '.self::CONFIG_FILEPATH.' for '.__CLASS__);
        }
        $path = $basePath.\tao_helpers_File::getSafeFileName($receiver->getIdentifier()).DIRECTORY_SEPARATOR;
        if (!file_exists($path)) {
            mkdir($path);
        }
        return  $path.\tao_helpers_File::getSafeFileName('message.html', $path);
    }
public function getFilePath(User $receiver)
    {
        $basePath = $this->getOption(self::CONFIG_FILEPATH);
        if (is_null($basePath) || !file_exists($basePath)) {
            throw new \common_exception_InconsistentData('Missing path '.self::CONFIG_FILEPATH.' for '.__CLASS__);
        }
        $path = $basePath.\tao_helpers_File::getSafeFileName($receiver->getIdentifier()).DIRECTORY_SEPARATOR;
        if (!file_exists($path)) {
            mkdir($path);
        }
        return  $path.\tao_helpers_File::getSafeFileName('message.html', $path);
    }
public function getFilePath ( User $ receiver ) { $ basePath = $ this -> getOption ( self :: CONFIG_FILEPATH ) ; if ( is_null ( $ basePath ) || ! file_exists ( $ basePath ) ) { throw new \ common_exception_InconsistentData ( 'Missing path ' . self :: CONFIG_FILEPATH . ' for ' . __CLASS__ ) ; } $ path = $ basePath . \ tao_helpers_File :: getSafeFileName ( $ receiver -> getIdentifier ( ) ) . DIRECTORY_SEPARATOR ; if ( ! file_exists ( $ path ) ) { mkdir ( $ path ) ; } return $ path . \ tao_helpers_File :: getSafeFileName ( 'message.html' , $ path ) ; }
Get file path to save message
@param User $receiver
@param boolean $refresh whether the file path must be regenerated.
Get file path to save message