[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/classes/ -> class-bp-theme-compat.php (summary)

BuddyPress Core Theme Compatibility Base Class.

File Size: 132 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Theme_Compat:: (7 methods):
  __construct()
  start()
  setup_globals()
  setup_actions()
  __set()
  __get()
  __isset()


Class: BP_Theme_Compat  - X-Ref

Theme Compatibility base class.

This is only intended to be extended, and is included here as a basic guide
for future Theme Packs to use. {@link BP_Legacy} is a good example of
extending this class.

__construct( Array $properties = array()   X-Ref
Pass the $properties to the object on creation.

param: array $properties Array of properties for BP_Theme_Compat.
since: 1.7.0

start()   X-Ref
Set up the BuddyPress-specific theme compat methods.

Themes should use this method in their constructor.

since: 1.7.0

setup_globals()   X-Ref
Set up global data for your template package.

Meant to be overridden in your class. See
{@link BP_Legacy::setup_globals()} for an example.

since: 1.7.0

setup_actions()   X-Ref
Set up theme hooks for your template package.

Meant to be overridden in your class. See
{@link BP_Legacy::setup_actions()} for an example.

since: 1.7.0

__set( $property, $value )   X-Ref
Set a theme's property.

param: string $property Property name.
param: mixed  $value    Property value.
since: 1.7.0
return: bool True on success, false on failure.

__get( $property )   X-Ref
Get a theme's property.

param: string $property Property name.
since: 1.7.0
return: mixed The value of the property if it exists, otherwise an

__isset( $property )   X-Ref
Check a theme's property exists.

param: string $property Property name.
since: 9.0.0
return: bool True if the property exists. False otherwise.



Generated: Thu Dec 5 01:00:58 2024 Cross-referenced by PHPXref 0.7.1