-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57f3fc5
commit 6e0d096
Showing
11 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
abstract class AbstractAdapter implements AdapterInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
interface AdapterInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
class Exception extends \Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
class File extends AbstractAdapter | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
class Http extends AbstractAdapter | ||
{ | ||
|
@@ -111,10 +111,11 @@ public function getFetchedResult() | |
|
||
if (($this->fetchStream->hasResponse()) && ($this->fetchStream->getResponse()->hasBody())) { | ||
$resultResponse = $this->fetchStream->getResponse()->getBody()->getContent(); | ||
if ($this->fetchStream->getResponse()->hasHeader('Content-Type')) { | ||
if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue() == 'application/json') { | ||
if (($this->fetchStream->getResponse()->hasHeader('Content-Type')) && | ||
(count($this->fetchStream->getResponse()->getHeader('Content-Type')->getValues()) == 1)) { | ||
if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue(0) == 'application/json') { | ||
$resultResponse = json_decode($resultResponse, true); | ||
} else if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue() == 'application/x-www-form-urlencoded') { | ||
} else if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue(0) == 'application/x-www-form-urlencoded') { | ||
parse_str($resultResponse, $resultResponse); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
class Table extends AbstractAdapter | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
class Auditor | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
class Exception extends \Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
interface AuditableInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* @author Nick Sagona, III <[email protected]> | ||
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) | ||
* @license http://www.popphp.org/license New BSD License | ||
* @version 1.3.0 | ||
* @version 1.3.2 | ||
*/ | ||
abstract class AuditableModel extends AbstractModel implements AuditableInterface | ||
{ | ||
|