This commit is contained in:
Dennis Eichhorn 2018-02-03 13:09:09 +01:00
parent c104ad355c
commit aad0631151
9 changed files with 37 additions and 42 deletions

View File

@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract;
use phpOMS\System\File\Directory; use phpOMS\System\File\Directory;
use phpOMS\Module\InfoManager; use phpOMS\Module\InfoManager;
/** /**
* Navigation class. * Navigation class.
* *

View File

@ -54,5 +54,4 @@ class AddressMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'profile_address_id'; protected static $primaryField = 'profile_address_id';
} }

View File

@ -46,5 +46,4 @@ class ContactElementMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'profile_contact_id'; protected static $primaryField = 'profile_contact_id';
} }

View File

@ -14,7 +14,6 @@ declare(strict_types = 1);
namespace Modules\Profile\Models; namespace Modules\Profile\Models;
/** /**
* Account class. * Account class.
* *

View File

@ -44,9 +44,9 @@ class Profile
public function __construct() public function __construct()
{ {
$this->image = new NullMedia(); $this->image = new NullMedia();
$this->birthday = new \DateTime('now'); $this->birthday = new \DateTime('now');
$this->account = new Account(); $this->account = new Account();
$this->calendar = new Calendar(); $this->calendar = new Calendar();
} }

View File

@ -90,5 +90,4 @@ class ProfileMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'profile_account_id'; protected static $primaryField = 'profile_account_id';
} }

View File

@ -21,7 +21,7 @@ use phpOMS\Message\ResponseAbstract;
class BaseView extends View class BaseView extends View
{ {
private $id = ''; private $id = '';
private $isRequired = false; private $isRequired = false;
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response) public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
@ -45,7 +45,7 @@ class BaseView extends View
public function render(...$data) : string public function render(...$data) : string
{ {
$this->id = $data[0]; $this->id = $data[0];
$this->isRequired = $data[1] ?? false; $this->isRequired = $data[1] ?? false;
$this->getData('popup')->setId($this->id); $this->getData('popup')->setId($this->id);
return parent::render(); return parent::render();