Révision 6dea1698
Ajouté par Jocelyn Dealande il y a environ 10 ans
class/RefPoint.class.php | ||
---|---|---|
29 | 29 |
return self::$all_ref_points_cache; |
30 | 30 |
} |
31 | 31 |
|
32 |
public static function get_all() { |
|
33 |
self::load_if_needed(); |
|
34 |
$ref_points_objs = array(); |
|
35 |
foreach (self::$all_ref_points_cache as $name => $vals) { |
|
36 |
$ref_points_objs[] = new RefPoint($name, $vals); |
|
37 |
} |
|
38 |
return $ref_points_objs; |
|
39 |
} |
|
40 |
|
|
32 | 41 |
public static function get($name) { |
33 | 42 |
self::load_if_needed(); |
34 | 43 |
$values = self::$all_ref_points_cache[$name]; |
Formats disponibles : Unified diff
Use propper RefPoint::get_all() instead of requiring ref_points.local.php