Esempio n. 1
0
 /**
  * Returns meta field or simple array of all object fields.
  * This method is slow and normally is called before field cache is built.
  * Make sure it is not called after first page is loaded and cache data is fully built (until tmp dir is cleaned).
  *
  * @param bool $blReturnSimple Set $blReturnSimple to true when you need simple array (meta data array is returned otherwise)
  *
  * @see oxBase::_getTableFields()
  *
  * @return array
  */
 protected function _getAllFields($blReturnSimple = false)
 {
     if ($this->_blEmployMultilanguage) {
         return parent::_getAllFields($blReturnSimple);
     } else {
         $sViewName = $this->getViewName();
         if (!$sViewName) {
             return array();
         }
         return $this->_getTableFields($sViewName, $blReturnSimple);
     }
 }