public function setActiveUser($oUser)
    {
        $this->activeUser = $oUser;
        $oDateTimeService = Factory::service('DateTime');

        //  Set the user's date/time formats
        $sFormatDate = $this->activeUser('pref_date_format');
        $sFormatDate = $sFormatDate ? $sFormatDate : $oDateTimeService->getDateFormatDefaultSlug();

        $sFormatTime = $this->activeUser('pref_time_format');
        $sFormatTime = $sFormatTime ? $sFormatTime : $oDateTimeService->getTimeFormatDefaultSlug();

        $oDateTimeService->setFormats($sFormatDate, $sFormatTime);
    }
public function setActiveUser($oUser)
    {
        $this->activeUser = $oUser;
        $oDateTimeService = Factory::service('DateTime');

        //  Set the user's date/time formats
        $sFormatDate = $this->activeUser('pref_date_format');
        $sFormatDate = $sFormatDate ? $sFormatDate : $oDateTimeService->getDateFormatDefaultSlug();

        $sFormatTime = $this->activeUser('pref_time_format');
        $sFormatTime = $sFormatTime ? $sFormatTime : $oDateTimeService->getTimeFormatDefaultSlug();

        $oDateTimeService->setFormats($sFormatDate, $sFormatTime);
    }
public function setActiveUser ( $ oUser ) { $ this -> activeUser = $ oUser ; $ oDateTimeService = Factory :: service ( 'DateTime' ) ; //  Set the user's date/time formats $ sFormatDate = $ this -> activeUser ( 'pref_date_format' ) ; $ sFormatDate = $ sFormatDate ? $ sFormatDate : $ oDateTimeService -> getDateFormatDefaultSlug ( ) ; $ sFormatTime = $ this -> activeUser ( 'pref_time_format' ) ; $ sFormatTime = $ sFormatTime ? $ sFormatTime : $ oDateTimeService -> getTimeFormatDefaultSlug ( ) ; $ oDateTimeService -> setFormats ( $ sFormatDate , $ sFormatTime ) ; }
Set the active user

@param \stdClass $oUser The user object to set
Set the active user