Automation/app/Libraries/Mangboard/FileLibrary.php
2024-09-07 19:00:11 +09:00

34 lines
678 B
PHP

<?php
namespace App\Libraries\Mangboard;
use App\Models\Mangboard\FileModel;
use App\Libraries\MyStorage\FileLibrary as MyStorageLibrary;
class FileLibrary extends MyStorageLibrary
{
private $_model = null;
public function __construct(string $path)
{
parent::__construct($path);
}
public function getModel(): FileModel
{
if ($this->_model === null) {
return $this->_model = new FileModel();
}
return $this->_model;
}
public function save($content): bool
{
if (!parent::save($content)) {
return false;
}
//mb_files 모델작업
return true;
}
}