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:
parent
771c2b59b1
commit
9f3ec38d1a
4 changed files with 3 additions and 46 deletions
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
* @link http://areyouahuman.com
|
* @link http://areyouahuman.com
|
||||||
*/
|
*/
|
||||||
class API_AYAH extends API_Common
|
class API_AYAH
|
||||||
{
|
{
|
||||||
public static function getHTML()
|
public static function getHTML()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
|
@ -18,7 +18,7 @@
|
||||||
/**
|
/**
|
||||||
* Google Profanity API Interface
|
* Google Profanity API Interface
|
||||||
*/
|
*/
|
||||||
class API_Google_Profanity extends API_Common
|
class API_Google_Profanity
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Check
|
* Check
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
* @link http://en.gravatar.com/site/implement/
|
* @link http://en.gravatar.com/site/implement/
|
||||||
*/
|
*/
|
||||||
class API_Gravatar extends API_Common
|
class API_Gravatar
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Hash
|
* Hash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue