mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-17 07:48:41 +00:00
phpcbf
This commit is contained in:
parent
c104ad355c
commit
aad0631151
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user