public function getCurrentSource()
    {
        if ($this->manualPageUidSource !== self::SOURCE_AUTO) {
            $result = $this->manualPageUidSource;
        } elseif ($this->hasManualPageUid()) {
            $result = self::SOURCE_MANUAL;
        } elseif ($this->hasFrontEnd()) {
            $result = self::SOURCE_FRONT_END;
        } elseif ($this->hasBackEnd()) {
            $result = self::SOURCE_BACK_END;
        } else {
            $result = self::NO_SOURCE_FOUND;
        }

        return $result;
    }
public function getCurrentSource()
    {
        if ($this->manualPageUidSource !== self::SOURCE_AUTO) {
            $result = $this->manualPageUidSource;
        } elseif ($this->hasManualPageUid()) {
            $result = self::SOURCE_MANUAL;
        } elseif ($this->hasFrontEnd()) {
            $result = self::SOURCE_FRONT_END;
        } elseif ($this->hasBackEnd()) {
            $result = self::SOURCE_BACK_END;
        } else {
            $result = self::NO_SOURCE_FOUND;
        }

        return $result;
    }
public function getCurrentSource ( ) { if ( $ this -> manualPageUidSource !== self :: SOURCE_AUTO ) { $ result = $ this -> manualPageUidSource ; } elseif ( $ this -> hasManualPageUid ( ) ) { $ result = self :: SOURCE_MANUAL ; } elseif ( $ this -> hasFrontEnd ( ) ) { $ result = self :: SOURCE_FRONT_END ; } elseif ( $ this -> hasBackEnd ( ) ) { $ result = self :: SOURCE_BACK_END ; } else { $ result = self :: NO_SOURCE_FOUND ; } return $ result ; }
Returns the current source for the page UID.

@return int either SOURCE_BACK_END, SOURCE_FRONT_END or SOURCE_MANUAL,
will be NO_SOURCE_FOUND if no source could be detected
Returns the current source for the page UID .