protected function getStorageDirectory(\core_kernel_classes_Resource $item, $lang)
    {
        $itemService = \taoItems_models_classes_ItemsService::singleton();
        $directory = $itemService->getItemDirectory($item, $lang);

        //we should use be language unaware for storage manipulation
        $path = str_replace($lang, '', $directory->getPrefix());
        return $itemService->getDefaultItemDirectory()->getDirectory($path);
    }
protected function getStorageDirectory(\core_kernel_classes_Resource $item, $lang)
    {
        $itemService = \taoItems_models_classes_ItemsService::singleton();
        $directory = $itemService->getItemDirectory($item, $lang);

        //we should use be language unaware for storage manipulation
        $path = str_replace($lang, '', $directory->getPrefix());
        return $itemService->getDefaultItemDirectory()->getDirectory($path);
    }
protected function getStorageDirectory ( \ core_kernel_classes_Resource $ item , $ lang ) { $ itemService = \ taoItems_models_classes_ItemsService :: singleton ( ) ; $ directory = $ itemService -> getItemDirectory ( $ item , $ lang ) ; //we should use be language unaware for storage manipulation $ path = str_replace ( $ lang , '' , $ directory -> getPrefix ( ) ) ; return $ itemService -> getDefaultItemDirectory ( ) -> getDirectory ( $ path ) ; }
Get the item's directory

@param \core_kernel_classes_Resource $item The item
@param string                        $lang The item lang

@return Directory The directory
Get the item s directory