Example #1
0
 public static function parentSection($path = '')
 {
     $path = (string) $path;
     $me = ar::context()->getObject();
     if ($me) {
         if (self::$rememberShortcuts) {
             $me->_load('mod_keepurl.php');
             $path = pinp_keepurl::_currentsection($path . '../');
         } else {
             $path = $me->parentsection($path);
         }
     }
     return $path;
 }
Example #2
0
File: ar.php Project: poef/ariadne
 public static function getPath($options = array())
 {
     $me = self::getObject($options);
     if ($me) {
         $path = $me->make_path($options['path']);
         if ($options['skipShortcuts']) {
             $me->_load('mod_keepurl.php');
             $realpath = pinp_keepurl::_make_real_path($path);
             if ($realpath) {
                 $path = $realpath;
             }
         } else {
             if ($options['rememberShortcuts']) {
                 $me->_load('mod_keepurl.php');
                 $path = pinp_keepurl::_make_path($path);
             } else {
                 if ($options['searchObject']) {
                     if (isset($me->data->path)) {
                         $path = $me->data->path;
                     }
                 }
             }
         }
     } else {
         $path = self::makePath('/', $options['path']);
     }
     return $path;
 }