*/
private $session;
+ /**
+ * @var AppHelper $appHelper
+ */
+ private $appHelper;
+
/**
* Set the profile owner ID
*
*/
public function setContactId(int $contact_id)
{
- DI::apphelper()->setContactId($contact_id);
+ $this->appHelper->setContactId($contact_id);
}
/**
*/
public function getContactId(): int
{
- return DI::apphelper()->getContactId();
+ return $this->appHelper->getContactId();
}
/**
*/
public function setTimeZone(string $timezone)
{
- DI::apphelper()->setTimeZone($timezone);
+ $this->appHelper->setTimeZone($timezone);
}
/**
*/
public function getTimeZone(): string
{
- return DI::apphelper()->getTimeZone();
+ return $this->appHelper->getTimeZone();
}
/**
$this->args = $args;
$this->pConfig = $pConfig;
$this->session = $session;
+ $this->appHelper = DI::apphelper();
$this->load($dbaDefinition, $viewDefinition);
}
$timezone = $default_timezone ?? '' ?: 'UTC';
}
- DI::apphelper()->setTimeZone($timezone);
+ $this->appHelper->setTimeZone($timezone);
}
/**