Source of file VideoLink.php
Size: 0,644 Bytes - Last Modified: 2021-12-23T10:02:36+00:00
/var/www/docs.ssmods.com/process/src/src/Model/VideoLink.php
1234567891011121314151617181920212223242526272829303132333435 | <?php namespace MadeHQ\Cloudinary\Model; use MadeHQ\Cloudinary\Model\Image; class VideoLink extends FileLink { private static $db = [ 'Caption' => 'Text', 'Credit' => 'Text', ]; /** * Has_one relationship * @var array */ private static $has_one = [ 'File' => Video::class, ]; private static $table_name = 'CloudinaryVideoLink'; public function getCredit() { return $this->dbObject('Credit')->value ?: $this->failover->Credit; } public function getCaption() { return $this->dbObject('Caption')->value ?: $this->failover->Caption; } } |