Пример #1
0
 public static function dbCachePrefix($segment_one = '', $segment_two = '', $segment_three = '')
 {
     if ($segment_one == '') {
         $segment_one = CoreInput::module_name();
     }
     if ($segment_two == '') {
         $segment_two = CoreInput::controller_name();
     }
     if ($segment_three == '') {
         $segment_three = CoreInput::method_name();
     }
     $key = '/' . $segment_one . '/' . $segment_two . '/' . $segment_three . '/';
     return $key;
 }