Exemplo n.º 1
0
 /**
  * Returns the item size as string.
  * For file-type items the size is the number of bytes. For folder-type items
  * the size is the number of items contained by the item.
  *
  * @return string Returns the size as string.
  */
 public function sizeToString()
 {
     return $this->type == self::TYPE_FILE ? File::sizeToString($this->size) : $this->size . ' ' . trans('cms::lang.media.folder_size_items');
 }