2 namespace TYPO3\CMS\Filelist;
59 $title = htmlspecialchars($this->resource->getName() .
' [' . (int)$this->resource->getProperty(
'uid') .
']');
60 return '<span title="' . $title .
'">' . $this->iconFactory->getIconForResource($this->resource,
Icon::SIZE_SMALL) .
'</span>';
85 return $this->resource->isIndexed() && $this->
getIsWritable() && $this->
getBackendUser()->check(
'tables_modify',
'sys_file_metadata');
94 $method =
'_getMetadata';
95 if (is_callable([$this->resource, $method])) {
96 $metadata = call_user_func([$this->resource, $method]);
98 if (isset($metadata[
'uid'])) {
99 $uid = (int)$metadata[
'uid'];
111 return $this->resource->getName();
119 $method =
'getReadablePath';
120 if (is_callable([$this->resource->getParentFolder(), $method])) {
121 return call_user_func([$this->resource->getParentFolder(), $method]);
132 return $this->resource->getPublicUrl(
true);
140 return strtoupper($this->resource->getExtension());
164 $method =
'checkActionPermission';
165 if (is_callable([$this->resource, $method])) {
166 return call_user_func_array([$this->resource, $method], [
'read']);
177 $method =
'checkActionPermission';
178 if (is_callable([$this->resource, $method])) {
179 return call_user_func_array([$this->resource, $method], [
'write']);
190 $method =
'checkActionPermission';
191 if (is_callable([$this->resource, $method])) {
192 return call_user_func_array([$this->resource, $method], [
'replace']);
203 $method =
'checkActionPermission';
204 if (is_callable([$this->resource, $method])) {
205 return call_user_func_array([$this->resource, $method], [
'rename']);
216 $method =
'checkActionPermission';
217 if (is_callable([$this->resource, $method])) {
218 return call_user_func_array([$this->resource, $method], [
'delete']);
239 $uid = (int)$this->resource->getProperty(
'uid');
245 if (!isset(static::$referenceCounts[$uid])) {
249 'ref_table=\'sys_file\''
250 .
' AND ref_uid=' . (
int)$this->resource->getProperty(
'uid')
252 .
' AND tablename != \'sys_file_metadata\''
255 if (!is_int($count)) {
259 static::$referenceCounts[$uid] = $count;
262 return static::$referenceCounts[$uid];
271 public function __call($method, $arguments)
273 if (is_callable([$this->resource, $method])) {
274 return call_user_func_array([$this->resource, $method], $arguments);