public function getUniqueName()
    {
        if (!is_null($this->name))
            return $this->name;

        $ext = strtolower($this->getExtension());

        $name = str_replace('.', '', uniqid(null, TRUE));
        return $this->name = $name.(strlen($ext) ? '.'.$ext : '');
    }
public function getUniqueName()
    {
        if (!is_null($this->name))
            return $this->name;

        $ext = strtolower($this->getExtension());

        $name = str_replace('.', '', uniqid(null, TRUE));
        return $this->name = $name.(strlen($ext) ? '.'.$ext : '');
    }
public function getUniqueName ( ) { if ( ! is_null ( $ this -> name ) ) return $ this -> name ; $ ext = strtolower ( $ this -> getExtension ( ) ) ; $ name = str_replace ( '.' , '' , uniqid ( null , TRUE ) ) ; return $ this -> name = $ name . ( strlen ( $ ext ) ? '.' . $ ext : '' ) ; }
Generates a unique name from the supplied file name.
Generates a unique name from the supplied file name .