mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-08 11:58:40 +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\Module\InfoManager;
|
||||
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -54,5 +54,4 @@ class AddressMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'profile_address_id';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,5 +46,4 @@ class ContactElementMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'profile_contact_id';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types = 1);
|
|||
|
||||
namespace Modules\Profile\Models;
|
||||
|
||||
|
||||
/**
|
||||
* Account class.
|
||||
*
|
||||
|
|
@ -25,4 +24,4 @@ namespace Modules\Profile\Models;
|
|||
*/
|
||||
class NullProfile extends Profile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace Modules\Profile\Models;
|
||||
|
||||
use phpOMS\Stdlib\Base\Enum;
|
||||
|
||||
/**
|
||||
* Permision state enum.
|
||||
*
|
||||
* @package Tasks
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class PermissionState extends Enum
|
||||
{
|
||||
/* public */ const PROFILE = 1;
|
||||
}
|
||||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace Modules\Profile\Models;
|
||||
|
||||
use phpOMS\Stdlib\Base\Enum;
|
||||
|
||||
/**
|
||||
* Permision state enum.
|
||||
*
|
||||
* @package Tasks
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class PermissionState extends Enum
|
||||
{
|
||||
/* public */ const PROFILE = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,9 +44,9 @@ class Profile
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$this->image = new NullMedia();
|
||||
$this->image = new NullMedia();
|
||||
$this->birthday = new \DateTime('now');
|
||||
$this->account = new Account();
|
||||
$this->account = new Account();
|
||||
$this->calendar = new Calendar();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,5 +90,4 @@ class ProfileMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'profile_account_id';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Message\ResponseAbstract;
|
|||
|
||||
class BaseView extends View
|
||||
{
|
||||
private $id = '';
|
||||
private $id = '';
|
||||
private $isRequired = false;
|
||||
|
||||
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
||||
|
|
@ -45,9 +45,9 @@ class BaseView extends View
|
|||
|
||||
public function render(...$data) : string
|
||||
{
|
||||
$this->id = $data[0];
|
||||
$this->id = $data[0];
|
||||
$this->isRequired = $data[1] ?? false;
|
||||
$this->getData('popup')->setId($this->id);
|
||||
return parent::render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,4 +44,4 @@ class PopupView extends View
|
|||
$this->id = $data[0] ?? $this->id;
|
||||
return parent::render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user