Changeset 10108 for trunk/src/bp-core/classes/class-bp-attachment.php
- Timestamp:
- 09/13/2015 02:02:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment.php
r10012 r10108 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 15 15 * Extend it to manage your component's uploads. 16 16 * 17 * @since BuddyPress (2.3.0)17 * @since 2.3.0 18 18 */ 19 19 abstract class BP_Attachment { … … 47 47 * Construct Upload parameters. 48 48 * 49 * @since BuddyPress (2.3.0)49 * @since 2.3.0 50 50 * 51 51 * @param array|string $args { … … 105 105 * Set upload path and url for the component. 106 106 * 107 * @since BuddyPress (2.3.0)107 * @since 2.3.0 108 108 * 109 109 * @uses bp_upload_dir() … … 144 144 * Used into the $overrides argument of BP_Attachment->upload() 145 145 * 146 * @since BuddyPress (2.3.0)146 * @since 2.3.0 147 147 * 148 148 * @param array $param A list of error messages to add to BuddyPress core ones. … … 179 179 * Include the WordPress core needed files. 180 180 * 181 * @since BuddyPress (2.3.0)181 * @since 2.3.0 182 182 */ 183 183 public function includes() { … … 194 194 * Upload the attachment. 195 195 * 196 * @since BuddyPress (2.3.0)196 * @since 2.3.0 197 197 * 198 198 * @param array $file The appropriate entry the from $_FILES superglobal. … … 294 294 * @see check_upload_mimes() 295 295 * 296 * @since BuddyPress (2.3.0)296 * @since 2.3.0 297 297 * 298 298 * @uses get_allowed_mime_types() … … 322 322 * @see BP_Attachment_Avatar->validate_upload() for an example of use 323 323 * 324 * @since BuddyPress (2.3.0)324 * @since 2.3.0 325 325 * 326 326 * @param array $file The temporary file attributes (before it has been moved). … … 345 345 * Default filter to save the attachments. 346 346 * 347 * @since BuddyPress (2.3.0)347 * @since 2.3.0 348 348 * 349 349 * @uses apply_filters() call 'bp_attachment_upload_dir' to eventually override the upload location … … 357 357 * Filters the component's upload directory. 358 358 * 359 * @since BuddyPress (2.3.0)359 * @since 2.3.0 360 360 * 361 361 * @param array $value Array containing the path, URL, and other helpful settings. … … 377 377 * (eg: add an .htaccess file) 378 378 * 379 * @since BuddyPress (2.3.0)379 * @since 2.3.0 380 380 * 381 381 * @uses wp_mkdir_p() … … 403 403 * Crop an image file. 404 404 * 405 * @since BuddyPress (2.3.0)405 * @since 2.3.0 406 406 * 407 407 * @param array $args { … … 505 505 * Override this method from your child class to build the script datas. 506 506 * 507 * @since BuddyPress (2.3.0)507 * @since 2.3.0 508 508 * 509 509 * @return array The javascript localization data.
Note: See TracChangeset
for help on using the changeset viewer.