17 use \TYPO3\CMS\Core\Resource\ResourceFactory;
34 public function renderIsPublic(array $propertyArray, \
TYPO3\CMS\Backend\Form\FormEngine $tceformsObj) {
36 $isPublic =
$GLOBALS[
'TCA'][
'sys_file_storage'][
'columns'][
'is_public'][
'config'][
'default'];
37 $fileRecord = $propertyArray[
'row'];
40 if ((
int)$propertyArray[
'row'][
'uid'] > 0) {
42 $storageRecord = $storage->getStorageRecord();
43 $isPublic = $storage->isPublic() && $storageRecord[
'is_public'];
46 if ($storageRecord[
'is_public'] && !$storage->isPublic()) {
48 $GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.message.storage_is_no_public'),
49 $GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.header.storage_is_no_public'),
53 \TYPO3\CMS\Core\Messaging\FlashMessageQueue::addMessage($message);
69 <div class="t3-form-field-item"> 70 <input name="data[sys_file_storage][{uid}][is_public]" value="0" type="hidden"> 71 <input class="checkbox" value="1" name="data[sys_file_storage][{uid}][is_public]_0" type="checkbox" %s> 74 $content = sprintf($template,
75 $isPublic ?
'checked="checked"' :
'' 78 return str_replace(
'{uid}', $fileRecord[
'uid'], $content);
renderIsPublic(array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj)
renderFileInformationContent(array $fileRecord, $isPublic)
static makeInstance($className)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]