Beispiel #1
0
 public function getValues($keys = null, $format = null, $maxDepth = null)
 {
     $ret = parent::getValues($keys, $format, $maxDepth);
     $ret['navigation'] = Xoops_Locale::translate('L_RELATED_NAVIGATION_OPTION' . $this->getVar('related_navigation'), 'page');
     $ret['related_links'] = Page::getInstance()->getLinkHandler()->getLinks($this->getVar('related_id'));
     return $ret;
 }
Beispiel #2
0
 public function cleanVarsForDB()
 {
     $system = System::getInstance();
     foreach (parent::getValues() as $k => $v) {
         if ($k !== 'dohtml') {
             if ($this->vars[$k]['data_type'] == XOBJ_DTYPE_STIME || $this->vars[$k]['data_type'] == XOBJ_DTYPE_MTIME || $this->vars[$k]['data_type'] == XOBJ_DTYPE_LTIME) {
                 $value = $system->cleanVars($_POST[$k], 'date', date('Y-m-d'), 'date') + $system->cleanVars($_POST[$k], 'time', date('u'), 'int');
                 $this->setVar($k, isset($_POST[$k]) ? $value : $v);
             } elseif ($this->vars[$k]['data_type'] == XOBJ_DTYPE_INT) {
                 $value = $system->cleanVars($_POST, $k, $v, 'int');
                 $this->setVar($k, $value);
             } elseif ($this->vars[$k]['data_type'] == XOBJ_DTYPE_ARRAY) {
                 $value = $system->cleanVars($_POST, $k, $v, 'array');
                 $this->setVar($k, $value);
             } else {
                 $value = $system->cleanVars($_POST, $k, $v, 'string');
                 $this->setVar($k, $value);
             }
         }
     }
 }
Beispiel #3
0
 public function toArray()
 {
     $ret = parent::getValues();
     unset($ret['dohtml']);
     return $ret;
 }
 public function getValues($keys = null, $format = null, $maxDepth = null)
 {
     $ret = parent::getValues($keys, $format, $maxDepth);
     return $ret;
 }