From e516a8ba08406c8f87065b15224d576d5169a062 Mon Sep 17 00:00:00 2001 From: the_undefined Date: Wed, 16 Apr 2008 20:23:02 +0000 Subject: [PATCH] Added doc block comments for new Set::extract features git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6673 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/set.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/libs/set.php b/cake/libs/set.php index dc3566936..c66d4cccc 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -370,6 +370,10 @@ class Set extends Object { * - /Post/Comment[author_name=john]/../name (Selects the name of all Posts that have at least one Comment written by john) * - /Posts[title] (Selects all Posts that have a 'name' key) * - /Comment/.[1] (Selects the contents of the first comment) + * - /Comment/.[:last] (Selects the last comment) + * - /Comment/.[:first] (Selects the last comment) + * - /Comment[text=/cakephp/i] (Selects the all comments that have a text matching the regex /cakephp/i) + * - /Comment/@* (Selects the all key names of all comments) * * Other limitations: * - Only absolute paths starting with a single '/' are supported right now