Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2015 11:45:50 PM (9 years ago)
Author:
r-a-y
Message:

Core: Better PHPDoc formatting for BP_Component::setup_globals().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-component.php

    r9844 r9847  
    191191     * @param array $args {
    192192     *     All values are optional.
    193      *     @type string $slug The component slug. Used to construct certain
    194      *           URLs, such as 'friends' in http://example.com/members/joe/friends/
    195      *           Default: the value of $this->id.
    196      *     @type string $root_slug The component root slug. Note that this
    197      *           value is generally unused if the component has a root
    198      *           directory (the slug will be overridden by the post_name of
    199      *           the directory page). Default: the slug of the directory
    200      *           page if one is found, otherwise an empty string.
    201      *     @type bool $has_directory Set to true if the component requires
    202      *           an associated WordPress page.
    203      *     @type callable $notification_callback Optional. The callable
    204      *           function that formats the component's notifications.
    205      *     @type string $search_term Optional. The placeholder text in the
    206      *           component directory search box. Eg, 'Search Groups...'.
    207      *     @type array $global_tables Optional. An array of database table
    208      *           names.
    209      *     @type array $meta_tables Optional. An array of metadata table
    210      *           names.
     193     *     @type string   $slug                  The component slug. Used to construct certain URLs, such as 'friends' in
     194     *                                           http://example.com/members/joe/friends/. Default: the value of $this->id.
     195     *     @type string   $root_slug             The component root slug. Note that this value is generally unused if the
     196     *                                           component has a root directory (the slug will be overridden by the
     197     *                                           post_name of the directory page). Default: the slug of the directory page
     198     *                                           if one is found, otherwise an empty string.
     199     *     @type bool     $has_directory         Set to true if the component requires an associated WordPress page.
     200     *     @type callable $notification_callback Optional. The callable function that formats the component's notifications.
     201     *     @type string   $search_term           Optional. The placeholder text in the component directory search box. Eg,
     202     *                                           'Search Groups...'.
     203     *     @type array    $global_tables         Optional. An array of database table names.
     204     *     @type array    $meta_tables           Optional. An array of metadata table names.
    211205     * }
    212206     */
Note: See TracChangeset for help on using the changeset viewer.