CMS Bridges  0.0.0
Multiple CMS platform module and theme development API
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Data Fields | Private Member Functions | Private Attributes
cbBase Class Reference

Public Member Functions

 __construct ()
 platform ()

Data Fields

const PLATFORM_UNKNOWN = false
const PLATFORM_DRUPAL = 'drupal'
const PLATFORM_JOOMLA = 'joomla'
const PLATFORM_WORDPRESS = 'wordpress'

Private Member Functions

 _platform ()

Private Attributes

 $platform = self::PLATFORM_UNKNOWN

Detailed Description

CMS Bridges Base class. All other classes should extend this one.

Definition at line 20 of file cbBase.php.


Constructor & Destructor Documentation

Base constructor for CMS Bridges.

Definition at line 45 of file cbBase.php.

References _platform(), and platform().


Member Function Documentation

_platform ( ) [private]

Determine the platform we are executing under.

Returns:
mixed Returns the determined platform.
Return values:
booleanFALSE If self::PLATFORM_UNKNOWN.
stringself::PLATFORM_DRUPAL, self::PLATFORM_JOOMLA, or self::PLATFORM_WORDPRESS.

Definition at line 61 of file cbBase.php.

References $platform, PLATFORM_DRUPAL, PLATFORM_JOOMLA, PLATFORM_UNKNOWN, and PLATFORM_WORDPRESS.

Referenced by __construct().

platform ( )

Get the platform value.

Returns:
mixed The platform value.
Return values:
booleanPLATFORM_UNKNOWN
The platform value is unknown. The platform is unknown if the platform being used is not supported or is otherwise undetermined.
stringPLATFORM_DRUPAL, PLATFORM_JOOMLA or PLATFORM_WORDPRESS
The supported platform value.

Definition at line 86 of file cbBase.php.

References $platform.

Referenced by __construct().


Field Documentation

$platform = self::PLATFORM_UNKNOWN [private]

The determined platform CMS Bridges is being executed under.

Definition at line 24 of file cbBase.php.

Referenced by _platform(), and platform().


The documentation for this class was generated from the following file: