add attributes to TwingleProject class
This commit is contained in:
parent
b633c8d887
commit
b920185005
1 changed files with 9 additions and 0 deletions
|
@ -14,8 +14,14 @@ class TwingleProject {
|
||||||
|
|
||||||
private static $bInitialized = FALSE;
|
private static $bInitialized = FALSE;
|
||||||
|
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
private $project_id;
|
||||||
|
|
||||||
private $values;
|
private $values;
|
||||||
|
|
||||||
|
private $orig_values;
|
||||||
|
|
||||||
private $timestamp;
|
private $timestamp;
|
||||||
|
|
||||||
private $settings;
|
private $settings;
|
||||||
|
@ -43,6 +49,9 @@ class TwingleProject {
|
||||||
// Fetch custom fields once and store them in static attribute
|
// Fetch custom fields once and store them in static attribute
|
||||||
self::init();
|
self::init();
|
||||||
|
|
||||||
|
// Copy values
|
||||||
|
$this->orig_values = $values;
|
||||||
|
|
||||||
// Map parameters to custom field names (e.g. "custom_21")
|
// Map parameters to custom field names (e.g. "custom_21")
|
||||||
foreach (self::$customFields as $customField) {
|
foreach (self::$customFields as $customField) {
|
||||||
if (!empty($values[str_replace('twingle_project_', '', $customField->getName())])) {
|
if (!empty($values[str_replace('twingle_project_', '', $customField->getName())])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue