Пример #1
0
 /**
  * Retrieves all options
  */
 public function getAll()
 {
     return IfwPsn_Wp_Proxy::getOption($this->_pageId);
 }
Пример #2
0
 /**
  * @param $id
  * @return mixed|null
  */
 public function getOption($id)
 {
     if ($this->hasOption($id)) {
         $options = IfwPsn_Wp_Proxy::getOption($this->_pm->getOptions()->getPageId());
         return $options[$this->_pm->getOptions()->getOptionRealId($id)];
     }
     return null;
 }