Changeset 949 in tests
- Timestamp:
- 08/05/2012 10:16:16 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/includes/factory.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/factory.php
r948 r949 34 34 } 35 35 36 function get ($post_id ) {36 function get_object_by_id $post_id ) { 37 37 return get_post( $post_id ); 38 38 } … … 59 59 } 60 60 61 function get ($user_id ) {61 function get_object_by_id $user_id ) { 62 62 return get_user( $user_id ); 63 63 } … … 89 89 } 90 90 91 function get ($comment_id ) {91 function get_object_by_id $comment_id ) { 92 92 return get_comment( $comment_id ); 93 93 } … … 115 115 function update_object( $blog_id, $fields ) {} 116 116 117 function get ($blog_id ) {117 function get_object_by_id $blog_id ) { 118 118 return get_blog_details( $blog_id, false ); 119 119 } … … 154 154 } 155 155 156 function get ($term_id ) {156 function get_object_by_id $term_id ) { 157 157 return get_term( $term_id ); 158 158 } … … 200 200 function create_and_get( $args = array(), $generation_definitions = null ) { 201 201 $object_id = $this->create( $args, $generation_definitions ); 202 return $this->get ( $object_id );203 } 204 205 abstract function get ($object_id );202 return $this->get_object_by_id( $object_id ); 203 } 204 205 abstract function get_object_by_id $object_id ); 206 206 207 207 function create_many( $count, $args = array(), $generation_definitions = null ) {
Note: See TracChangeset
for help on using the changeset viewer.