Changeset 7990 for trunk/wp-includes/bookmark.php
- Timestamp:
- 05/25/2008 03:45:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/bookmark.php
r7193 r7990 8 8 9 9 /** 10 * get_bookmark() - GetBookmark data based on ID10 * Retrieve Bookmark data based on ID 11 11 * 12 12 * @since 2.1 … … 38 38 39 39 /** 40 * get_bookmark_field() - Getssingle bookmark data item or field.40 * Retrieve single bookmark data item or field. 41 41 * 42 42 * @since 2.3 … … 66 66 67 67 /** 68 * get_link() - Returnsbookmark data based on ID.68 * Retrieve bookmark data based on ID. 69 69 * 70 70 * @since 2.0 … … 81 81 82 82 /** 83 * get_bookmarks() -Retrieves the list of bookmarks83 * Retrieves the list of bookmarks 84 84 * 85 85 * Attempts to retrieve from the cache first based on MD5 hash of arguments. If … … 88 88 * 89 89 * List of default arguments are as follows: 90 * 'orderby' - Default is 'name' (string). How to order the links by. String is based off of the bookmark scheme. 91 * 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either ascending or descending order. 92 * 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to display. 93 * 'category' - Default is empty string (string). Include the links in what category ID(s). 94 * 'category_name' - Default is empty string (string). Get links by category name. 95 * 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide links marked as 'invisible'. 96 * 'show_updated' - Default is 0 (integer). Will show the time of when the bookmark was last updated. 97 * 'include' - Default is empty string (string). Include other categories separated by commas. 98 * 'exclude' - Default is empty string (string). Exclude other categories separated by commas. 90 * 'orderby' - Default is 'name' (string). How to order the links by. String is 91 * based off of the bookmark scheme. 92 * 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either 93 * ascending or descending order. 94 * 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to 95 * display. 96 * 'category' - Default is empty string (string). Include the links in what 97 * category ID(s). 98 * 'category_name' - Default is empty string (string). Get links by category 99 * name. 100 * 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide 101 * links marked as 'invisible'. 102 * 'show_updated' - Default is 0 (integer). Will show the time of when the 103 * bookmark was last updated. 104 * 'include' - Default is empty string (string). Include other categories 105 * separated by commas. 106 * 'exclude' - Default is empty string (string). Exclude other categories 107 * separated by commas. 99 108 * 100 109 * @since 2.1 101 110 * @uses $wpdb Database Object 111 * @link http://codex.wordpress.org/Template_Tags/get_bookmarks 102 112 * 103 113 * @param string|array $args List of arguments to overwrite the defaults … … 227 237 228 238 /** 229 * sanitize_bookmark() -Sanitizes all bookmark fields239 * Sanitizes all bookmark fields 230 240 * 231 241 * @since 2.3 232 242 * 233 243 * @param object|array $bookmark Bookmark row 234 * @param string $context Optional, default is 'display'. How to filter the fields 244 * @param string $context Optional, default is 'display'. How to filter the 245 * fields 235 246 * @return object|array Same type as $bookmark but with fields sanitized. 236 247 */ … … 255 266 256 267 /** 257 * sanitize_bookmark_field() - Sanitizes a bookmark field 258 * 259 * Sanitizes the bookmark fields based on what the field name is. If the field has a 260 * strict value set, then it will be tested for that, else a more generic filtering is 261 * applied. After the more strict filter is applied, if the $context is 'raw' then the 262 * value is immediately return. 263 * 264 * Hooks exist for the more generic cases. With the 'edit' context, the 'edit_$field' 265 * filter will be called and passed the $value and $bookmark_id respectively. With the 266 * 'db' context, the 'pre_$field' filter is called and passed the value. The 'display' 267 * context is the final context and has the $field has the filter name and is passed the 268 * $value, $bookmark_id, and $context respectively. 268 * Sanitizes a bookmark field 269 * 270 * Sanitizes the bookmark fields based on what the field name is. If the field 271 * has a strict value set, then it will be tested for that, else a more generic 272 * filtering is applied. After the more strict filter is applied, if the 273 * $context is 'raw' then the value is immediately return. 274 * 275 * Hooks exist for the more generic cases. With the 'edit' context, the 276 * 'edit_$field' filter will be called and passed the $value and $bookmark_id 277 * respectively. With the 'db' context, the 'pre_$field' filter is called and 278 * passed the value. The 'display' context is the final context and has the 279 * $field has the filter name and is passed the $value, $bookmark_id, and 280 * $context respectively. 269 281 * 270 282 * @since 2.3 … … 273 285 * @param mixed $value The bookmark field value 274 286 * @param int $bookmark_id Bookmark ID 275 * @param string $context How to filter the field value. Either 'raw', 'edit', 'attribute', 'js', 'db', or 'display' 287 * @param string $context How to filter the field value. Either 'raw', 'edit', 288 * 'attribute', 'js', 'db', or 'display' 276 289 * @return mixed The filtered value 277 290 */ … … 319 332 320 333 /** 321 * delete_get_bookmark_cache() -Deletes entire bookmark cache334 * Deletes entire bookmark cache 322 335 * 323 336 * @since 2.1
Note: See TracChangeset
for help on using the changeset viewer.