mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
add docblocks
This commit is contained in:
parent
6bff30df32
commit
2346b0606a
|
|
@ -1,15 +1,98 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package phpOMS\Model\Html
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpOMS\Model\Html;
|
||||
|
||||
/**
|
||||
* Form element class.
|
||||
*
|
||||
* @package phpOMS\Model\Html
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class FormElement
|
||||
{
|
||||
/**
|
||||
* Element id.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public string $id;
|
||||
|
||||
/**
|
||||
* Form id.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public string $form;
|
||||
|
||||
/**
|
||||
* Element name.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public string $name;
|
||||
|
||||
/**
|
||||
* Value is required.
|
||||
*
|
||||
* @var bool
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public bool $required;
|
||||
|
||||
/**
|
||||
* Default value.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public string $defaultValue;
|
||||
|
||||
/**
|
||||
* Required values which cannot be changed/removed.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public string $requiredValue;
|
||||
|
||||
/**
|
||||
* Autosave on change.
|
||||
*
|
||||
* @var bool
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public bool $autosave;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $id Element id
|
||||
* @param string $form Form id
|
||||
* @param string $name Element name
|
||||
* @param bool $required Value is required
|
||||
* @param string $defaultValue Default value
|
||||
* @param string $requiredValue Values which cannot be removed/changed
|
||||
* @param bool $autosave Save on change
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(
|
||||
string $id = '',
|
||||
string $form = '',
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class Server extends SocketAbstract
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param SocketApplication $app socketApplication
|
||||
* @param ApplicationAbstract $app Socket application
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user