Follow existing naming conv. removed namespace

pull/17/head
Frode Petterson 2016-01-14 09:46:00 +01:00
parent 11481c3b4b
commit 12032461bc
3 changed files with 4 additions and 8 deletions

View File

@ -4,8 +4,6 @@
* File info? * File info?
*/ */
namespace H5P;
/** /**
* The default file storage class for H5P. Will carry out the requested file * The default file storage class for H5P. Will carry out the requested file
* operations using PHP's standard file operation functions. * operations using PHP's standard file operation functions.
@ -17,7 +15,7 @@ namespace H5P;
* @copyright 2016 Joubel AS * @copyright 2016 Joubel AS
* @license MIT * @license MIT
*/ */
class DefaultStorage implements \H5P\FileStorage { class DefaultStorage implements \H5PFileStorage {
private $path; private $path;
/** /**

View File

@ -4,12 +4,10 @@
* File info? * File info?
*/ */
namespace H5P;
/** /**
* Interface needed to handle storage and export of H5P Content. * Interface needed to handle storage and export of H5P Content.
*/ */
interface FileStorage { interface H5PFileStorage {
/** /**
* Store the library folder. * Store the library folder.

View File

@ -1694,7 +1694,7 @@ class H5PCore {
* *
* @param object $H5PFramework * @param object $H5PFramework
* The frameworks implementation of the H5PFrameworkInterface * The frameworks implementation of the H5PFrameworkInterface
* @param string|\H5P\FileStorage $path H5P file storage directory or class. * @param string|\H5PFileStorage $path H5P file storage directory or class.
* @param string $url To file storage directory. * @param string $url To file storage directory.
* @param string $language code. Defaults to english. * @param string $language code. Defaults to english.
* @param boolean $export enabled? * @param boolean $export enabled?
@ -1703,7 +1703,7 @@ class H5PCore {
public function __construct($H5PFramework, $path, $url, $language = 'en', $export = FALSE, $development_mode = H5PDevelopment::MODE_NONE) { public function __construct($H5PFramework, $path, $url, $language = 'en', $export = FALSE, $development_mode = H5PDevelopment::MODE_NONE) {
$this->h5pF = $H5PFramework; $this->h5pF = $H5PFramework;
$this->fs = ($path instanceof \H5P\FileStorage ? $path : new \H5P\DefaultStorage($path)); $this->fs = ($path instanceof \H5PFileStorage ? $path : new \H5PDefaultStorage($path));
$this->url = $url; $this->url = $url;
$this->exportEnabled = $export; $this->exportEnabled = $export;