Пример #1
0
 /** {@inheritDoc} */
 public function process()
 {
     $id = (int) $this->getProperty('id');
     $class = trim($this->getProperty('class'));
     if (empty($class)) {
         return $this->modx->lexicon('gl_err_ns');
     }
     $current = $this->gl->getCurrentData($id, $class);
     if (!empty($current)) {
         $this->gl->opts['current'] = $current;
     }
     $this->gl->opts['set'] = true;
     return $this->success('', $this->gl->opts);
 }