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.
* *
@ -25,4 +24,4 @@ namespace Modules\Profile\Models;
*/ */
class NullProfile extends Profile class NullProfile extends Profile
{ {
} }

View File

@ -1,30 +1,30 @@
<?php <?php
/** /**
* Orange Management * Orange Management
* *
* PHP Version 7.1 * PHP Version 7.1
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link http://website.orange-management.de * @link http://website.orange-management.de
*/ */
declare(strict_types = 1); declare(strict_types = 1);
namespace Modules\Profile\Models; namespace Modules\Profile\Models;
use phpOMS\Stdlib\Base\Enum; use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Tasks * @package Tasks
* @license OMS License 1.0 * @license OMS License 1.0
* @link http://website.orange-management.de * @link http://website.orange-management.de
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class PermissionState extends Enum abstract class PermissionState extends Enum
{ {
/* public */ const PROFILE = 1; /* public */ const PROFILE = 1;
} }

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,9 +45,9 @@ 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();
} }
} }

View File

@ -44,4 +44,4 @@ class PopupView extends View
$this->id = $data[0] ?? $this->id; $this->id = $data[0] ?? $this->id;
return parent::render(); return parent::render();
} }
} }