mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-29 15:28:41 +00:00
Remove calendar from profile
This commit is contained in:
parent
6ad11dd3f3
commit
ff1be38633
|
|
@ -18,7 +18,6 @@ use Modules\Admin\Models\Account;
|
|||
use Modules\Admin\Models\NullAccount;
|
||||
use Modules\Media\Models\Media;
|
||||
use Modules\Media\Models\NullMedia;
|
||||
use Modules\Calendar\Models\Calendar;
|
||||
|
||||
/**
|
||||
* Account class.
|
||||
|
|
@ -40,14 +39,11 @@ class Profile
|
|||
|
||||
private $location = [];
|
||||
|
||||
private $calendar = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->image = new NullMedia();
|
||||
$this->birthday = new \DateTime('now');
|
||||
$this->account = new Account();
|
||||
$this->calendar = new Calendar();
|
||||
}
|
||||
|
||||
public function getId() : int
|
||||
|
|
@ -65,11 +61,6 @@ class Profile
|
|||
$this->location[] = $location;
|
||||
}
|
||||
|
||||
public function getCalendar()
|
||||
{
|
||||
return $this->calendar;
|
||||
}
|
||||
|
||||
public function getImage() : Media
|
||||
{
|
||||
return $this->image;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ class ProfileMapper extends DataMapperAbstract
|
|||
'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'],
|
||||
'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'],
|
||||
'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'],
|
||||
'profile_account_calendar' => ['name' => 'profile_account_calendar', 'type' => 'int', 'internal' => 'calendar'],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
@ -54,10 +53,6 @@ class ProfileMapper extends DataMapperAbstract
|
|||
'mapper' => MediaMapper::class,
|
||||
'src' => 'profile_account_image',
|
||||
],
|
||||
'calendar' => [
|
||||
'mapper' => CalendarMapper::class,
|
||||
'src' => 'profile_account_calendar',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user