BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Classes

  • CategoriesBehavior
  • DataCleanupBehavior
  • GeometryBehavior
  • ObjectModelBehavior
  • ObjectTypeBehavior
  • RelationsBehavior
  • SearchableBehavior
  • UniqueNameBehavior
  • UploadableBehavior
  • UserModifiedBehavior

Class UploadableBehavior

Upload files.

Cake\ORM\Behavior
Extended by BEdita\Core\Model\Behavior\UploadableBehavior
Namespace: BEdita\Core\Model\Behavior
Since: 4.0.0
Located at Core/src/Model/Behavior/UploadableBehavior.php

Methods summary

protected boolean
# write( League\Flysystem\MountManager $manager, string $path, mixed $contents )

Write file contents.

Write file contents.

Parameters

$manager
Mount manager.
$path
File path.
$contents
File contents.

Returns

boolean
protected boolean
# processUpload( Cake\ORM\Entity $entity, string $pathField, string $contentsField )

Process upload of a single file.

Process upload of a single file.

Parameters

$entity
Entity.
$pathField
Name of field in which path is stored.
$contentsField
Name of field in which contents are stored.

Returns

boolean
protected boolean
# processDelete( Cake\ORM\Entity $entity, string $pathField )

Process delete of a single file.

Process delete of a single file.

Parameters

$entity
Entity.
$pathField
Name of field in which path is stored.

Returns

boolean
public
# afterSave( Cake\Event\Event $event, Cake\ORM\Entity $entity )

Process upload.

Process upload.

Parameters

$event
Dispatched event.
$entity
Entity.
public
# afterDelete( Cake\Event\Event $event, Cake\ORM\Entity $entity )

Process delete.

Process delete.

Parameters

$event
Dispatched event.
$entity
Entity.

Properties summary

protected array $_defaultConfig
# [ 'files' => [ [ 'path' => 'path', 'contents' => 'contents', ], ], ]
BEdita API doc | 4-cactus API documentation generated by ApiGen