/** * Loads object review information. Returns true on success. * * @param string $oxId ID of object to load * * @return bool */ public function load($oxId) { if ($blRet = parent::load($oxId)) { // convert date's to international format $this->oxreviews__oxcreate->setValue(oxUtilsDate::getInstance()->formatDBDate($this->oxreviews__oxcreate->value)); } return $blRet; }
/** * Loads object information from DB. Returns true on success. * * @param string $oxID ID of object to load * * @return bool */ public function load($oxID) { if ($blRet = parent::load($oxID)) { // convert date's to international format $this->oxremark__oxcreate = new oxField(oxRegistry::get("oxUtilsDate")->formatDBDate($this->oxremark__oxcreate->value), oxField::T_RAW); } return $blRet; }
/** * Loads object (newssubscription) details from DB. Returns true on success. * * @param string $oxId oxnewssubscribed ID * * @return bool */ public function load($oxId) { $blRet = parent::load($oxId); if ($this->oxnewssubscribed__oxdboptin->value == 1) { $this->_blWasSubscribed = true; } elseif ($this->oxnewssubscribed__oxdboptin->value == 2) { $this->_blWasPreSubscribed = true; } return $blRet; }
/** * Loads object (user) details from DB. Returns true on success. * * @param string $oxID User ID * * @return bool */ public function load($oxID) { $blRet = parent::load($oxID); // convert date's to international format if (isset($this->oxuser__oxcreate->value)) { $this->oxuser__oxcreate->setValue(oxRegistry::get("oxUtilsDate")->formatDBDate($this->oxuser__oxcreate->value)); } // change newsSubcription user id if (isset($this->_oNewsSubscription)) { $this->_oNewsSubscription->oxnewssubscribed__oxuserid = new oxField($oxID, oxField::T_RAW); } return $blRet; }