code/model/KapostConversionHistory.php
public function getDestinationLink() {
        $destinationType=$this->DestinationType;
        if(!empty($destinationType) && class_exists($destinationType) && is_subclass_of($destinationType, 'DataObject')) {
            $dest=$destinationType::get()->byID($this->DestinationID);
            if(!empty($dest) && $dest!==false && $dest->exists()) {
                if($dest->hasMethod('CMSEditLink')) {
                    return $dest->CMSEditLink();
                }else if($dest->hasMethod('getDestinationLink')) {
                    return $dest->getDestinationLink();
                }else {
                    user_error('You must implement the getDestinationLink() method on a decendent of KapostConversionHistory "'.$this->class.'" or implement the method CMSEditLink on "'.$this->DestinationType.'"', E_USER_WARNING);
                }
            }else {
                return;
            }
        }
    }
public function getDestinationLink() {
        $destinationType=$this->DestinationType;
        if(!empty($destinationType) && class_exists($destinationType) && is_subclass_of($destinationType, 'DataObject')) {
            $dest=$destinationType::get()->byID($this->DestinationID);
            if(!empty($dest) && $dest!==false && $dest->exists()) {
                if($dest->hasMethod('CMSEditLink')) {
                    return $dest->CMSEditLink();
                }else if($dest->hasMethod('getDestinationLink')) {
                    return $dest->getDestinationLink();
                }else {
                    user_error('You must implement the getDestinationLink() method on a decendent of KapostConversionHistory "'.$this->class.'" or implement the method CMSEditLink on "'.$this->DestinationType.'"', E_USER_WARNING);
                }
            }else {
                return;
            }
        }
    }
public function getDestinationLink ( ) { $ destinationType = $ this -> DestinationType ; if ( ! empty ( $ destinationType ) && class_exists ( $ destinationType ) && is_subclass_of ( $ destinationType , 'DataObject' ) ) { $ dest = $ destinationType :: get ( ) -> byID ( $ this -> DestinationID ) ; if ( ! empty ( $ dest ) && $ dest !== false && $ dest -> exists ( ) ) { if ( $ dest -> hasMethod ( 'CMSEditLink' ) ) { return $ dest -> CMSEditLink ( ) ; } else if ( $ dest -> hasMethod ( 'getDestinationLink' ) ) { return $ dest -> getDestinationLink ( ) ; } else { user_error ( 'You must implement the getDestinationLink() method on a decendent of KapostConversionHistory "' . $ this -> class . '" or implement the method CMSEditLink on "' . $ this -> DestinationType . '"' , E_USER_WARNING ) ; } } else { return ; } } }
Gets the link to the desination in the cms
@return string Relative link to the destination page
Gets the link to the desination in the cms