Move globals to classes

This commit is contained in:
Brian Miyaji
2014-03-25 20:36:49 +11:00
parent da2b884af9
commit 47db92c98e
7 changed files with 142 additions and 56 deletions

View File

@@ -0,0 +1,28 @@
<?php
/**
* SportsPress sports
*
* The SportsPress sports class stores preset sport data.
*
* @class SP_Sports
* @version 0.7
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
*/
class SP_Sports {
/** @var array Array of sports */
public $sports;
/**
* Constructor for the sports class - defines all preset sports.
*
* @access public
* @return void
*/
public function __construct() {
$this->sports = apply_filters( 'sportspress_sports', array(
));
}
}