/** * @return array */ public static function getAllFields() { static $fields = null; if ($fields == null) { $fields = array_keys(Internals\OrderPropsValueTable::getMap()); } return $fields; }
/** * @return array */ public static function getAllFields() { static $fields = null; if ($fields == null) { $map = Internals\OrderPropsValueTable::getMap(); foreach ($map as $key => $value) { if (is_array($value)) { $fields[] = $key; } elseif ($value instanceof Entity\ScalarField) { $fields[] = $value->getName(); } } } return $fields; }