@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Yaro\Jarboe\Table\Fields\Adapters; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use Yaro\Jarboe\Table\Fields\File; |
| 7 | 6 | |
| 8 | 7 | class RepeaterFile |
@@ -69,6 +69,9 @@ |
||
| 69 | 69 | return $this; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $filename |
|
| 74 | + */ |
|
| 72 | 75 | protected function storeFile($filepath, $filename, $width = null, $height = null, $x = null, $y = null, $rotate = null, $rotateBackgroundColor = null) |
| 73 | 76 | { |
| 74 | 77 | $image = InterventionImage::make($filepath); |
@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | protected $path = ''; |
| 12 | 12 | protected $multiple = false; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $filename |
|
| 16 | + */ |
|
| 14 | 17 | protected function storeFile(UploadedFile $file, $filename, Request $request) |
| 15 | 18 | { |
| 16 | 19 | $path = $file->storeAs($this->getPath(), $filename, [ |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | return $this; |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 42 | 48 | public function getDisk() |
| 43 | 49 | { |
| 44 | 50 | return $this->disk; |
@@ -51,6 +57,9 @@ discard block |
||
| 51 | 57 | return $this; |
| 52 | 58 | } |
| 53 | 59 | |
| 60 | + /** |
|
| 61 | + * @return string |
|
| 62 | + */ |
|
| 54 | 63 | public function getPath() |
| 55 | 64 | { |
| 56 | 65 | return $this->path; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Yaro\Jarboe\Etc\CustomFields; |
| 4 | 4 | |
| 5 | -use BaconQrCode\Renderer\Image\SvgImageBackEnd; |
|
| 6 | 5 | use BaconQrCode\Renderer\ImageRenderer; |
| 6 | +use BaconQrCode\Renderer\Image\SvgImageBackEnd; |
|
| 7 | 7 | use BaconQrCode\Renderer\RendererStyle\RendererStyle; |
| 8 | 8 | use BaconQrCode\Writer; |
| 9 | 9 | use Illuminate\Http\Request; |
@@ -6,6 +6,9 @@ |
||
| 6 | 6 | { |
| 7 | 7 | protected $tooltip; |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param string $message |
|
| 11 | + */ |
|
| 9 | 12 | public function tooltip($message) |
| 10 | 13 | { |
| 11 | 14 | $this->tooltip = $message; |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\EditHandlerTrait; |
| 16 | 16 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\ForceDeleteHandlerTrait; |
| 17 | 17 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\HistoryHandlerTrait; |
| 18 | -use Yaro\Jarboe\Http\Controllers\Traits\Handlers\RevertHandlerTrait; |
|
| 19 | 18 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\InlineHandlerTrait; |
| 20 | 19 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\ListHandlerTrait; |
| 21 | 20 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\OrderByHandlerTrait; |
| 22 | 21 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\PerPageHandlerTrait; |
| 23 | 22 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\RenderRepeaterItemHandlerTrait; |
| 24 | 23 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\RestoreHandlerTrait; |
| 24 | +use Yaro\Jarboe\Http\Controllers\Traits\Handlers\RevertHandlerTrait; |
|
| 25 | 25 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\SearchHandlerTrait; |
| 26 | 26 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\SearchRelationHandlerTrait; |
| 27 | 27 | use Yaro\Jarboe\Http\Controllers\Traits\Handlers\SortableHandlerTrait; |
@@ -60,5 +60,9 @@ |
||
| 60 | 60 | abstract protected function init(); |
| 61 | 61 | abstract protected function bound(); |
| 62 | 62 | abstract protected function crud(): CRUD; |
| 63 | + |
|
| 64 | + /** |
|
| 65 | + * @param string $action |
|
| 66 | + */ |
|
| 63 | 67 | abstract protected function can($action): bool; |
| 64 | 68 | } |
@@ -60,5 +60,9 @@ |
||
| 60 | 60 | abstract protected function init(); |
| 61 | 61 | abstract protected function bound(); |
| 62 | 62 | abstract protected function crud(): CRUD; |
| 63 | + |
|
| 64 | + /** |
|
| 65 | + * @param string $action |
|
| 66 | + */ |
|
| 63 | 67 | abstract protected function can($action): bool; |
| 64 | 68 | } |
@@ -4,16 +4,39 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface FieldPropsInterface |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @return boolean |
|
| 9 | + */ |
|
| 7 | 10 | public function isEncode(); |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @return boolean |
|
| 14 | + */ |
|
| 8 | 15 | public function isInline(); |
| 16 | + |
|
| 17 | + /** |
|
| 18 | + * @return boolean |
|
| 19 | + */ |
|
| 9 | 20 | public function isMarkupRow(); |
| 10 | 21 | public function isMultiple(); |
| 11 | 22 | public function isOrderable(); |
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @return boolean |
|
| 26 | + */ |
|
| 12 | 27 | public function isRelationField(); |
| 13 | 28 | public function isNullable(); |
| 29 | + |
|
| 30 | + /** |
|
| 31 | + * @return boolean |
|
| 32 | + */ |
|
| 14 | 33 | public function hasTooltip(); |
| 15 | 34 | public function hasClipboardButton(); |
| 16 | 35 | public function isTranslatable(); |
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @return boolean |
|
| 39 | + */ |
|
| 17 | 40 | public function isMaskable(); |
| 18 | 41 | public function hasMaxlength(): bool; |
| 19 | 42 | public function belongsToArray(): bool; |