| @@ 60-72 (lines=13) @@ | ||
| 57 | ) ) ); |
|
| 58 | } |
|
| 59 | ||
| 60 | public static function currentSite( $path = '' ) { |
|
| 61 | $path = (string) $path; |
|
| 62 | $me = ar::context()->getObject(); |
|
| 63 | if ($me) { |
|
| 64 | if (self::$rememberShortcuts) { |
|
| 65 | $me->_load('mod_keepurl.php'); |
|
| 66 | $path = pinp_keepurl::_currentsite( $path ); |
|
| 67 | } else { |
|
| 68 | $path = $me->currentsite( $path ); |
|
| 69 | } |
|
| 70 | } |
|
| 71 | return $path; |
|
| 72 | } |
|
| 73 | ||
| 74 | public static function parentSite( $path = '' ) { |
|
| 75 | $path = (string) $path; |
|
| @@ 74-86 (lines=13) @@ | ||
| 71 | return $path; |
|
| 72 | } |
|
| 73 | ||
| 74 | public static function parentSite( $path = '' ) { |
|
| 75 | $path = (string) $path; |
|
| 76 | $me = ar::context()->getObject(); |
|
| 77 | if ($me) { |
|
| 78 | if (self::$rememberShortcuts) { |
|
| 79 | $me->_load('mod_keepurl.php'); |
|
| 80 | $path = pinp_keepurl::_currentsite( $path.'../' ); |
|
| 81 | } else { |
|
| 82 | $path = $me->parentsite( $path ); |
|
| 83 | } |
|
| 84 | } |
|
| 85 | return $path; |
|
| 86 | } |
|
| 87 | ||
| 88 | public static function currentSection( $path = '' ) { |
|
| 89 | $path = (string) $path; |
|
| @@ 88-100 (lines=13) @@ | ||
| 85 | return $path; |
|
| 86 | } |
|
| 87 | ||
| 88 | public static function currentSection( $path = '' ) { |
|
| 89 | $path = (string) $path; |
|
| 90 | $me = ar::context()->getObject(); |
|
| 91 | if ($me) { |
|
| 92 | if (self::$rememberShortcuts) { |
|
| 93 | $me->_load('mod_keepurl.php'); |
|
| 94 | $path = pinp_keepurl::_currentsection( $path ); |
|
| 95 | } else { |
|
| 96 | $path = $me->currentsection( $path ); |
|
| 97 | } |
|
| 98 | } |
|
| 99 | return $path; |
|
| 100 | } |
|
| 101 | ||
| 102 | public static function parentSection( $path = '' ) { |
|
| 103 | $path = (string) $path; |
|
| @@ 102-114 (lines=13) @@ | ||
| 99 | return $path; |
|
| 100 | } |
|
| 101 | ||
| 102 | public static function parentSection( $path = '' ) { |
|
| 103 | $path = (string) $path; |
|
| 104 | $me = ar::context()->getObject(); |
|
| 105 | if ($me) { |
|
| 106 | if (self::$rememberShortcuts) { |
|
| 107 | $me->_load('mod_keepurl.php'); |
|
| 108 | $path = pinp_keepurl::_currentsection( $path.'../' ); |
|
| 109 | } else { |
|
| 110 | $path = $me->parentsection( $path ); |
|
| 111 | } |
|
| 112 | } |
|
| 113 | return $path; |
|
| 114 | } |
|
| 115 | ||
| 116 | public static function currentProject( $path = '' ) { |
|
| 117 | $path = (string) $path; |
|