Automation init...4
This commit is contained in:
parent
2d41c92d98
commit
1893200123
@ -121,6 +121,8 @@ class Storage extends FileStorage
|
|||||||
private function create_small_image(BoardEntity $board_entity, $target_name = "small", int $width = 480, int $height = 319): void
|
private function create_small_image(BoardEntity $board_entity, $target_name = "small", int $width = 480, int $height = 319): void
|
||||||
{
|
{
|
||||||
$fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
|
$fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
|
||||||
|
var_dump($fileInfo);
|
||||||
|
exit;
|
||||||
$target_file_name = sprintf("%s_%s.%s", $fileInfo['filename'], $target_name, $fileInfo['extension']);
|
$target_file_name = sprintf("%s_%s.%s", $fileInfo['filename'], $target_name, $fileInfo['extension']);
|
||||||
if (!$this->isFileType_FileTrait($fileInfo['extension'])) {
|
if (!$this->isFileType_FileTrait($fileInfo['extension'])) {
|
||||||
throw new \Exception("{$this->getOriginName()} Image 형식파일이 아닙니다.");
|
throw new \Exception("{$this->getOriginName()} Image 형식파일이 아닙니다.");
|
||||||
@ -150,6 +152,6 @@ class Storage extends FileStorage
|
|||||||
//File DB에 넣기
|
//File DB에 넣기
|
||||||
$this->create_file($boards_entity, $board_entity, $board_table);
|
$this->create_file($boards_entity, $board_entity, $board_table);
|
||||||
//작은이미지 만들기
|
//작은이미지 만들기
|
||||||
$this->create_small_image($board_entity, $this);
|
$this->create_small_image($board_entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user