| @@ 75-87 (lines=13) @@ | ||
| 72 | ) ) ); |
|
| 73 | } |
|
| 74 | ||
| 75 | public static function currentSite( $path = '' ) { |
|
| 76 | $path = (string) $path; |
|
| 77 | $me = ar::context()->getObject(); |
|
| 78 | if ($me) { |
|
| 79 | if (self::$rememberShortcuts) { |
|
| 80 | $me->_load('mod_keepurl.php'); |
|
| 81 | $path = pinp_keepurl::_currentsite( $path ); |
|
| 82 | } else { |
|
| 83 | $path = $me->currentsite( $path ); |
|
| 84 | } |
|
| 85 | } |
|
| 86 | return $path; |
|
| 87 | } |
|
| 88 | ||
| 89 | public static function parentSite( $path = '' ) { |
|
| 90 | $path = (string) $path; |
|
| @@ 89-101 (lines=13) @@ | ||
| 86 | return $path; |
|
| 87 | } |
|
| 88 | ||
| 89 | public static function parentSite( $path = '' ) { |
|
| 90 | $path = (string) $path; |
|
| 91 | $me = ar::context()->getObject(); |
|
| 92 | if ($me) { |
|
| 93 | if (self::$rememberShortcuts) { |
|
| 94 | $me->_load('mod_keepurl.php'); |
|
| 95 | $path = pinp_keepurl::_currentsite( $path.'../' ); |
|
| 96 | } else { |
|
| 97 | $path = $me->parentsite( $path ); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | return $path; |
|
| 101 | } |
|
| 102 | ||
| 103 | public static function currentSection( $path = '' ) { |
|
| 104 | $path = (string) $path; |
|
| @@ 103-115 (lines=13) @@ | ||
| 100 | return $path; |
|
| 101 | } |
|
| 102 | ||
| 103 | public static function currentSection( $path = '' ) { |
|
| 104 | $path = (string) $path; |
|
| 105 | $me = ar::context()->getObject(); |
|
| 106 | if ($me) { |
|
| 107 | if (self::$rememberShortcuts) { |
|
| 108 | $me->_load('mod_keepurl.php'); |
|
| 109 | $path = pinp_keepurl::_currentsection( $path ); |
|
| 110 | } else { |
|
| 111 | $path = $me->currentsection( $path ); |
|
| 112 | } |
|
| 113 | } |
|
| 114 | return $path; |
|
| 115 | } |
|
| 116 | ||
| 117 | public static function parentSection( $path = '' ) { |
|
| 118 | $path = (string) $path; |
|
| @@ 117-129 (lines=13) @@ | ||
| 114 | return $path; |
|
| 115 | } |
|
| 116 | ||
| 117 | public static function parentSection( $path = '' ) { |
|
| 118 | $path = (string) $path; |
|
| 119 | $me = ar::context()->getObject(); |
|
| 120 | if ($me) { |
|
| 121 | if (self::$rememberShortcuts) { |
|
| 122 | $me->_load('mod_keepurl.php'); |
|
| 123 | $path = pinp_keepurl::_currentsection( $path.'../' ); |
|
| 124 | } else { |
|
| 125 | $path = $me->parentsection( $path ); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | return $path; |
|
| 129 | } |
|
| 130 | ||
| 131 | public static function currentProject( $path = '' ) { |
|
| 132 | $path = (string) $path; |
|