HOR-2451
This commit is contained in:
@@ -48,10 +48,10 @@ class Dynaform extends BaseDynaform
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $dyn_title = '';
|
protected $dyn_title_content = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [Dyn_title] column value.
|
* Get the [Dyn_title_content] column value.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@@ -61,8 +61,8 @@ class Dynaform extends BaseDynaform
|
|||||||
throw (new Exception( "Error in getDynTitle, the DYN_UID can't be blank" ));
|
throw (new Exception( "Error in getDynTitle, the DYN_UID can't be blank" ));
|
||||||
}
|
}
|
||||||
$lang = defined( 'SYS_LANG' ) ? SYS_LANG : 'en';
|
$lang = defined( 'SYS_LANG' ) ? SYS_LANG : 'en';
|
||||||
$this->dyn_title = Content::load( 'DYN_TITLE', '', $this->getDynUid(), $lang );
|
$this->dyn_title_content = Content::load( 'DYN_TITLE', '', $this->getDynUid(), $lang );
|
||||||
return $this->dyn_title;
|
return $this->dyn_title_content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -82,11 +82,11 @@ class Dynaform extends BaseDynaform
|
|||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->dyn_title !== $v || $v === '') {
|
if ($this->dyn_title_content !== $v || $v === '') {
|
||||||
$this->dyn_title = $v;
|
$this->dyn_title_content = $v;
|
||||||
$lang = defined( 'SYS_LANG' ) ? SYS_LANG : 'en';
|
$lang = defined( 'SYS_LANG' ) ? SYS_LANG : 'en';
|
||||||
|
|
||||||
$res = Content::addContent( 'DYN_TITLE', '', $this->getDynUid(), $lang, $this->dyn_title );
|
$res = Content::addContent( 'DYN_TITLE', '', $this->getDynUid(), $lang, $this->dyn_title_content );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // set()
|
} // set()
|
||||||
|
|||||||
@@ -43,7 +43,14 @@ class Triggers extends BaseTriggers
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the tri_title column value.
|
* This value goes in the content table
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $tri_title_content = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the tri_title_content column value.
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getTriTitleContent()
|
public function getTriTitleContent()
|
||||||
@@ -52,12 +59,12 @@ class Triggers extends BaseTriggers
|
|||||||
throw ( new Exception( "Error in getTriTitle, the getTriUid() can't be blank") );
|
throw ( new Exception( "Error in getTriTitle, the getTriUid() can't be blank") );
|
||||||
}
|
}
|
||||||
$lang = defined ( 'SYS_LANG') ? SYS_LANG : 'en';
|
$lang = defined ( 'SYS_LANG') ? SYS_LANG : 'en';
|
||||||
$this->tri_title = Content::load ( 'TRI_TITLE', '', $this->getTriUid(), $lang );
|
$this->tri_title_content = Content::load ( 'TRI_TITLE', '', $this->getTriUid(), $lang );
|
||||||
return $this->tri_title;
|
return $this->tri_title_content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the tri_title column value.
|
* Set the tri_title_content column value.
|
||||||
*
|
*
|
||||||
* @param string $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
@@ -69,9 +76,9 @@ class Triggers extends BaseTriggers
|
|||||||
}
|
}
|
||||||
$v=isset($v)?((string)$v):'';
|
$v=isset($v)?((string)$v):'';
|
||||||
$lang = defined ( 'SYS_LANG') ? SYS_LANG : 'en';
|
$lang = defined ( 'SYS_LANG') ? SYS_LANG : 'en';
|
||||||
if ($this->tri_title !== $v || $v==="") {
|
if ($this->tri_title_content !== $v || $v==="") {
|
||||||
$this->tri_title = $v;
|
$this->tri_title_content = $v;
|
||||||
$res = Content::addContent( 'TRI_TITLE', '', $this->getTriUid(), $lang, $this->tri_title );
|
$res = Content::addContent( 'TRI_TITLE', '', $this->getTriUid(), $lang, $this->tri_title_content );
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user