Exemplo n.º 1
0
 /**
  * @param	LanguageObject $languageObject The languageObject object to add.
  */
 protected function doAddLanguageObject($languageObject)
 {
     $this->collLanguageObjects[] = $languageObject;
     $languageObject->setContentObject($this);
 }
Exemplo n.º 2
0
 public function adminEdit($iObjectId, $sLanguageId = null)
 {
     if ($sLanguageId !== null) {
         $this->sLanguageId = $sLanguageId;
     }
     if ($this->sLanguageId === null) {
         $this->sLanguageId = AdminManager::getContentLanguage();
     }
     $oCurrentContentObject = $this->contentObjectById($iObjectId);
     $oCurrentLanguageObject = $oCurrentContentObject->getLanguageObject($this->sLanguageId);
     if ($oCurrentLanguageObject === null) {
         $oCurrentLanguageObject = new LanguageObject();
         $oCurrentLanguageObject->setLanguageId($this->sLanguageId);
         $oCurrentLanguageObject->setContentObject($oCurrentContentObject);
         $oCurrentLanguageObject->setData(null);
     }
     $oModuleInstance = $this->backendModuleInstanceByLanguageObject($oCurrentLanguageObject);
     $oWidget = WidgetModule::getWidget('language_object_control', null, $oCurrentLanguageObject, $oModuleInstance);
     $oResult = new stdClass();
     $oResult->control_session_key = $oWidget->getSessionKey();
     $oResult->type = $oCurrentContentObject->getObjectType();
     return $oResult;
 }