-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
144 additions
and
8 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/Dvlpp/Sharp/Config/FormFields/SharpHiddenFormFieldConfig.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Dvlpp\Sharp\Config\FormFields; | ||
|
||
use Dvlpp\Sharp\Config\SharpFormFieldConfig; | ||
|
||
class SharpHiddenFormFieldConfig extends SharpFormFieldConfig | ||
{ | ||
/** | ||
* @param string $key | ||
* @return static | ||
*/ | ||
public static function create($key) | ||
{ | ||
$instance = new static; | ||
$instance->key = $key; | ||
|
||
$instance->label = ""; | ||
|
||
return $instance; | ||
} | ||
|
||
public function type() | ||
{ | ||
return "hidden"; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Dvlpp/Sharp/Config/FormFields/SharpPasswordFormFieldConfig.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Dvlpp\Sharp\Config\FormFields; | ||
|
||
use Dvlpp\Sharp\Config\SharpFormFieldConfig; | ||
|
||
class SharpPasswordFormFieldConfig extends SharpFormFieldConfig | ||
{ | ||
/** | ||
* @param string $key | ||
* @return static | ||
*/ | ||
public static function create($key) | ||
{ | ||
$instance = new static; | ||
$instance->key = $key; | ||
|
||
$instance->label = ""; | ||
|
||
return $instance; | ||
} | ||
|
||
public function type() | ||
{ | ||
return "password"; | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
src/Dvlpp/Sharp/Config/FormFields/SharpRefSublistItemFormFieldConfig.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
namespace Dvlpp\Sharp\Config\FormFields; | ||
|
||
use Dvlpp\Sharp\Config\SharpFormFieldConfig; | ||
|
||
class SharpRefSublistItemFormFieldConfig extends SharpFormFieldConfig | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $repository; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $linkedRefField; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $refListKey; | ||
|
||
/** | ||
* @param string $key | ||
* @param string $repository | ||
* @param string $linkedRefField | ||
* @param string $refListKey | ||
* @return static | ||
*/ | ||
public static function create($key, $repository, $linkedRefField, $refListKey) | ||
{ | ||
$instance = new static; | ||
$instance->key = $key; | ||
$instance->repository = $repository; | ||
$instance->linkedRefField = $linkedRefField; | ||
$instance->refListKey = $refListKey; | ||
|
||
$instance->label = ""; | ||
|
||
return $instance; | ||
} | ||
|
||
public function type() | ||
{ | ||
return "ref"; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function repository() | ||
{ | ||
return $this->repository; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function linkedRefField() | ||
{ | ||
return $this->linkedRefField; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function refListKey() | ||
{ | ||
return $this->refListKey; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php namespace Dvlpp\Sharp\Form\Fields; | ||
<?php | ||
|
||
namespace Dvlpp\Sharp\Form\Fields; | ||
|
||
/** | ||
* A password input field. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters