Dropped API Common class

The class didn't provide any value and promised that it would in the future.
Any sort of redundant connection logic should simply be contained in a class
that can be extended and not an API-centric common class. Trying to move away
from all common classes in favor of classes that can be reused in different
parts of the core as well as outside of it.
This commit is contained in:
Joshua Sherman 2014-01-11 18:07:50 -05:00
parent 771c2b59b1
commit 9f3ec38d1a
4 changed files with 3 additions and 46 deletions

View file

@ -20,7 +20,7 @@
*
* @link http://areyouahuman.com
*/
class API_AYAH extends API_Common
class API_AYAH
{
public static function getHTML()
{

View file

@ -1,43 +0,0 @@
<?php
/**
* Common API Class File for PICKLES
*
* PHP version 5
*
* Licensed under The MIT License
* Redistribution of these files must retain the above copyright notice.
*
* @author Joshua Sherman <pickles@joshtronic.com>
* @copyright Copyright 2007-2014, Joshua Sherman
* @license http://www.opensource.org/licenses/mit-license.html
* @package PICKLES
* @link https://github.com/joshtronic/pickles
*/
/**
* Common API Interface
*
* Parent class that our API interface classes should be extending. Contains
* execution of parental functions but may contain more down the road.
*/
abstract class API_Common extends Object
{
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
}
/**
* Destructor
*/
public function __destruct()
{
parent::__destruct();
}
}
?>

View file

@ -18,7 +18,7 @@
/**
* Google Profanity API Interface
*/
class API_Google_Profanity extends API_Common
class API_Google_Profanity
{
/**
* Check

View file

@ -20,7 +20,7 @@
*
* @link http://en.gravatar.com/site/implement/
*/
class API_Gravatar extends API_Common
class API_Gravatar
{
/**
* Hash