protected function getAudioData()
    {
        if ($this->no_session != true) {
            if (isset($_SESSION['securimage_code_audio'][$this->namespace])) {
                return $_SESSION['securimage_code_audio'][$this->namespace];
            }
        }

        if ($this->use_database) {
            $this->openDatabase();
            $code = $this->getCodeFromDatabase();

            if (!empty($code['audio_data'])) {
                return $code['audio_data'];
            }
        }

        return false;
    }
protected function getAudioData()
    {
        if ($this->no_session != true) {
            if (isset($_SESSION['securimage_code_audio'][$this->namespace])) {
                return $_SESSION['securimage_code_audio'][$this->namespace];
            }
        }

        if ($this->use_database) {
            $this->openDatabase();
            $code = $this->getCodeFromDatabase();

            if (!empty($code['audio_data'])) {
                return $code['audio_data'];
            }
        }

        return false;
    }
protected function getAudioData ( ) { if ( $ this -> no_session != true ) { if ( isset ( $ _SESSION [ 'securimage_code_audio' ] [ $ this -> namespace ] ) ) { return $ _SESSION [ 'securimage_code_audio' ] [ $ this -> namespace ] ; } } if ( $ this -> use_database ) { $ this -> openDatabase ( ) ; $ code = $ this -> getCodeFromDatabase ( ) ; if ( ! empty ( $ code [ 'audio_data' ] ) ) { return $ code [ 'audio_data' ] ; } } return false ; }
Gets audio file contents from the session or database

@return string|boolean Audio contents on success, or false if no audio found in session or DB
Gets audio file contents from the session or database