Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2015 02:02:56 AM (11 years ago)
Author:
tw2113
Message:

Standardizing our @since tags for the Core component.

See #6576.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-attachment.php

    r10012 r10108  
    77 */
    88
    9 // Exit if accessed directly
     9// Exit if accessed directly.
    1010defined( 'ABSPATH' ) || exit;
    1111
     
    1515 * Extend it to manage your component's uploads.
    1616 *
    17  * @since BuddyPress (2.3.0)
     17 * @since 2.3.0
    1818 */
    1919abstract class BP_Attachment {
     
    4747     * Construct Upload parameters.
    4848     *
    49      * @since BuddyPress (2.3.0)
     49     * @since 2.3.0
    5050     *
    5151     * @param array|string $args {
     
    105105     * Set upload path and url for the component.
    106106     *
    107      * @since BuddyPress (2.3.0)
     107     * @since 2.3.0
    108108     *
    109109     * @uses bp_upload_dir()
     
    144144     * Used into the $overrides argument of BP_Attachment->upload()
    145145     *
    146      * @since BuddyPress (2.3.0)
     146     * @since 2.3.0
    147147     *
    148148     * @param array $param A list of error messages to add to BuddyPress core ones.
     
    179179     * Include the WordPress core needed files.
    180180     *
    181      * @since BuddyPress (2.3.0)
     181     * @since 2.3.0
    182182     */
    183183    public function includes() {
     
    194194     * Upload the attachment.
    195195     *
    196      * @since BuddyPress (2.3.0)
     196     * @since 2.3.0
    197197     *
    198198     * @param  array       $file              The appropriate entry the from $_FILES superglobal.
     
    294294     * @see check_upload_mimes()
    295295     *
    296      * @since BuddyPress (2.3.0)
     296     * @since 2.3.0
    297297     *
    298298     * @uses get_allowed_mime_types()
     
    322322     * @see BP_Attachment_Avatar->validate_upload() for an example of use
    323323     *
    324      * @since BuddyPress (2.3.0)
     324     * @since 2.3.0
    325325     *
    326326     * @param  array $file The temporary file attributes (before it has been moved).
     
    345345     * Default filter to save the attachments.
    346346     *
    347      * @since BuddyPress (2.3.0)
     347     * @since 2.3.0
    348348     *
    349349     * @uses apply_filters() call 'bp_attachment_upload_dir' to eventually override the upload location
     
    357357         * Filters the component's upload directory.
    358358         *
    359          * @since BuddyPress (2.3.0)
     359         * @since 2.3.0
    360360         *
    361361         * @param array $value Array containing the path, URL, and other helpful settings.
     
    377377     * (eg: add an .htaccess file)
    378378     *
    379      * @since BuddyPress (2.3.0)
     379     * @since 2.3.0
    380380     *
    381381     * @uses wp_mkdir_p()
     
    403403     * Crop an image file.
    404404     *
    405      * @since BuddyPress (2.3.0)
     405     * @since 2.3.0
    406406     *
    407407     * @param array $args {
     
    505505     * Override this method from your child class to build the script datas.
    506506     *
    507      * @since BuddyPress (2.3.0)
     507     * @since 2.3.0
    508508     *
    509509     * @return array The javascript localization data.
Note: See TracChangeset for help on using the changeset viewer.