Пример #1
0
 public static function createPath($category, $subcategory, $name){
     switch($category){
         case 'image':
             return StaticFilesHelper::createImagePath($subcategory, $name);
             break;
         case 'avatars':
             return StaticFilesHelper::createAvatarsPath($name);
             break;
         case 'common':
             return StaticFilesHelper::createCommonPath($subcategory, $name);
             break;
         case 'txt':
             return StaticFilesHelper::createTxtPath($subcategory, $name);
             break;
         default:
             return StaticFilesHelper::createCommonPath($subcategory, $name);
             break;
     }
 }