shoppingmallv2 init...
This commit is contained in:
parent
6a941223d1
commit
56f169f73a
@ -7,16 +7,15 @@ use CodeIgniter\Entity\Entity;
|
||||
abstract class BaseEntity extends Entity
|
||||
{
|
||||
abstract public function getTitle(): string;
|
||||
public function getPrimaryKey()
|
||||
final public function getPrimaryKey()
|
||||
{
|
||||
$this->attributes['uid'];
|
||||
return $this->attributes['uid'];
|
||||
}
|
||||
//조화수관련 Field전용
|
||||
final public function getViews($field = 'view_cnt')
|
||||
{
|
||||
return $this->attributes[$field];
|
||||
}
|
||||
|
||||
//파일관련 Field전용
|
||||
final public function getFileDownload($field = "upload_file")
|
||||
{
|
||||
|
||||
@ -13,11 +13,6 @@ class BoardEntity extends BaseHierarchyEntity
|
||||
{
|
||||
return $this->attributes['title'];
|
||||
}
|
||||
public function getStatus(): string
|
||||
{
|
||||
return $this->attributes['status'];
|
||||
}
|
||||
|
||||
//추가기능
|
||||
public function getPassword()
|
||||
{
|
||||
|
||||
@ -13,11 +13,6 @@ class CategoryEntity extends BaseHierarchyEntity
|
||||
{
|
||||
return $this->attributes['name'];
|
||||
}
|
||||
public function getStatus(): string
|
||||
{
|
||||
return $this->attributes['status'];
|
||||
}
|
||||
|
||||
//추가기능
|
||||
//CommonHelper에서 사용
|
||||
public function getRole($field = 'isaccess')
|
||||
|
||||
@ -14,10 +14,5 @@ class OrderEntity extends BaseEntity
|
||||
{
|
||||
return $this->attributes['name'];
|
||||
}
|
||||
final public function getStatus(): string
|
||||
{
|
||||
return $this->attributes['status'];
|
||||
}
|
||||
|
||||
//추가기능
|
||||
}
|
||||
|
||||
@ -13,10 +13,5 @@ class ProductEntity extends BaseEntity
|
||||
{
|
||||
return $this->attributes['name'];
|
||||
}
|
||||
public function getStatus(): string
|
||||
{
|
||||
return $this->attributes['status'];
|
||||
}
|
||||
|
||||
//추가기능
|
||||
}
|
||||
|
||||
@ -13,11 +13,6 @@ class UserEntity extends BaseEntity
|
||||
{
|
||||
return $this->attributes['name'];
|
||||
}
|
||||
public function getStatus(): string
|
||||
{
|
||||
return $this->attributes['status'];
|
||||
}
|
||||
|
||||
//추가기능
|
||||
public function getPassword()
|
||||
{
|
||||
|
||||
@ -9,18 +9,9 @@ class UserSNSEntity extends BaseEntity
|
||||
protected $casts = [];
|
||||
|
||||
//기본기능
|
||||
public function getPrimaryKey()
|
||||
{
|
||||
return $this->attributes['uid'];
|
||||
}
|
||||
public function getTitle(): string
|
||||
{
|
||||
return $this->attributes['name'];
|
||||
}
|
||||
public function getStatus(): string
|
||||
{
|
||||
return $this->attributes['status'];
|
||||
}
|
||||
|
||||
//추가기능
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user