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