public function callbackValidAudioUrl($sUrl)
    {
        $sId = $this->blog_post_model->extractSpotifyId($sUrl);

        if (!empty($sId)) {

            return true;

        } else {

            $oFormValidation = Factory::service('FormValidation');
            $oFormValidation->set_message('callbackValidAudioUrl', 'Not a valid Spotify Track URL.');
            return false;
        }
    }
public function callbackValidAudioUrl($sUrl)
    {
        $sId = $this->blog_post_model->extractSpotifyId($sUrl);

        if (!empty($sId)) {

            return true;

        } else {

            $oFormValidation = Factory::service('FormValidation');
            $oFormValidation->set_message('callbackValidAudioUrl', 'Not a valid Spotify Track URL.');
            return false;
        }
    }
public function callbackValidAudioUrl ( $ sUrl ) { $ sId = $ this -> blog_post_model -> extractSpotifyId ( $ sUrl ) ; if ( ! empty ( $ sId ) ) { return true ; } else { $ oFormValidation = Factory :: service ( 'FormValidation' ) ; $ oFormValidation -> set_message ( 'callbackValidAudioUrl' , 'Not a valid Spotify Track URL.' ) ; return false ; } }
Form Validation callback, checks that a Spotify ID can be extracted from the string
@param  string  $sUrl The URL to check
@return boolean
Form Validation callback checks that a Spotify ID can be extracted from the string