/**
  * Retrieve (and update) a value from module data.
  * @param string $key
  * @param tx_rnbase_mod_IModule $mod
  * @param array $options
  */
 public static function getModuleValue($key, tx_rnbase_mod_IModule $mod, $options = array())
 {
     $changedSettings = is_array($options['changed']) ? $options['changed'] : array();
     $type = isset($options['type']) ? $options['type'] : '';
     $modData = Tx_Rnbase_Backend_Utility::getModuleData(array($key => ''), $changedSettings, $mod->getName(), $type);
     return isset($modData[$key]) ? $modData[$key] : NULL;
 }
Exemplo n.º 2
0
 /**
  * Submit-Button like this:	name="mykey[123]" value="label"
  * You will get 123 as long as no other submit changes this value.
  * @param string $key
  * @param string $modName
  * @return mixed
  */
 public function getStoredRequestData($key, $changed = array(), $modName = 'DEFRNBASEMOD')
 {
     $data = tx_rnbase_parameters::getPostOrGetParameter($key);
     if (is_array($data)) {
         list($itemid, ) = each($data);
         $changed[$key] = $itemid;
     }
     $ret = Tx_Rnbase_Backend_Utility::getModuleData(array($key => ''), $changed, $modName);
     return $ret[$key];
 }
 /**
  * (non-PHPdoc)
  * @see t3lib_SCbase::checkExtObj()
  */
 public function checkExtObj()
 {
     if (is_array($this->extClassConf) && $this->extClassConf['name']) {
         $this->extObj = tx_rnbase::makeInstance($this->extClassConf['name']);
         $this->extObj->init($this, $this->extClassConf);
         // Re-write:
         tx_rnbase::load('tx_rnbase_parameters');
         $this->MOD_SETTINGS = Tx_Rnbase_Backend_Utility::getModuleData($this->MOD_MENU, tx_rnbase_parameters::getPostOrGetParameter('SET'), $this->MCONF['name'], $this->modMenu_type, $this->modMenu_dontValidateList, $this->modMenu_setDefaultList);
     }
 }