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