PM-1659
This commit is contained in:
@@ -16,7 +16,7 @@ class pmDynaform
|
|||||||
public $credentials = null;
|
public $credentials = null;
|
||||||
public $lang = null;
|
public $lang = null;
|
||||||
public $langs = null;
|
public $langs = null;
|
||||||
private $dependent = null; //todo
|
public $onPropertyRead = "";
|
||||||
|
|
||||||
public function __construct($fields = array())
|
public function __construct($fields = array())
|
||||||
{
|
{
|
||||||
@@ -108,6 +108,11 @@ class pmDynaform
|
|||||||
$this->jsonr($value);
|
$this->jsonr($value);
|
||||||
}
|
}
|
||||||
if (!$sw1 && !$sw2) {
|
if (!$sw1 && !$sw2) {
|
||||||
|
//read event
|
||||||
|
$fn = $this->onPropertyRead;
|
||||||
|
if (function_exists($fn)) {
|
||||||
|
$fn($json, $key, $value);
|
||||||
|
}
|
||||||
//set properties from trigger
|
//set properties from trigger
|
||||||
$prefixs = array("@@", "@#", "@%", "@?", "@$", "@=");
|
$prefixs = array("@@", "@#", "@%", "@?", "@$", "@=");
|
||||||
if (is_string($value) && in_array(substr($value, 0, 2), $prefixs)) {
|
if (is_string($value) && in_array(substr($value, 0, 2), $prefixs)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user