From db3485d47ce0c3ae0c14cc8547bbffa00b57a564 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 11 Jan 2012 21:59:56 -0500 Subject: [PATCH] Add function prototypes. --- lib/Cake/Utility/Set2.php | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/lib/Cake/Utility/Set2.php b/lib/Cake/Utility/Set2.php index 1029732ce..1b2453775 100644 --- a/lib/Cake/Utility/Set2.php +++ b/lib/Cake/Utility/Set2.php @@ -53,4 +53,66 @@ class Set2 { } return $data; } + + public static function extract(array $data, $path) { + + } + + public static function insert(array $data, $path, $values = null) { + + } + + public static function remove(array $data, $path) { + + } + + public static function combine(array $data, $keyPath, $valuePath = null) { + + } + + public static function contains(array $data, $needle) { + + } + + public static function check(array $data, $path) { + + } + + public static function filter(array $data) { + + } + + public static function flatten(array $data) { + + } + + public static function merge(array $data, $merge) { + + } + + public static function dimensions(array $data) { + + } + + /** + * Map a callback across all elements in a set. + * Can be provided a path to only modify slices of the set. + * + */ + public static function map(array $data, $path, $function = null) { + + } + + public static function sort(array $data, $path, $dir) { + + } + + public static function diff(array $data, $data2) { + + } + + public static function normalize(array $data, $assoc = true) { + + } + }