*
* @see ClassLoader
* @author Roland Haeder <webmaster@shipsimu.org>
- * @version 0.0.0
+ * @version 1.0.1
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
<?php
+// Own namespace
+namespace CoreFramework\Controller\!!!;
+
+// Import framework stuff
+use CoreFramework\Controller\BaseController;
+use CoreFramework\Controller\Controller;
+use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
+use CoreFramework\Resolver\Command\CommandResolver;
+use CoreFramework\Response\Responseable;
+
/**
- * Controller for
+ * Controller for ???
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
use CoreFramework\Controller\BaseController;
use CoreFramework\Controller\Controller;
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
use CoreFramework\Resolver\Command\CommandResolver;
use CoreFramework\Response\Responseable;
use CoreFramework\Controller\BaseController;
use CoreFramework\Controller\Controller;
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
use CoreFramework\Resolver\Command\CommandResolver;
use CoreFramework\Response\Responseable;
// Import framework stuff
use CoreFramework\Database\Frontend\BaseDatabaseWrapper;
+use CoreFramework\Registry\Registerable;
/**
* A database wrapper for payments
use CoreFramework\Database\Frontend\BaseDatabaseWrapper;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Result\Update\UpdateableResult;
/**
* A database wrapper for user points classes
namespace CoreFramework\Discovery\Payment;
// Import framework stuff
+use CoreFramework\Discovery\BaseDiscovery;
+use CoreFramework\Discovery\Discoverable;
use CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Filter\Filterable;
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registry;
-use CoreFramework\Stack\Index\IndexableStack;
+use CoreFramework\Stacker\Index\IndexableStack;
/**
* A factory class for file-based stack indexes
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Filesystem\Block;
use CoreFramework\Filesystem\Block\CalculatableBlock;
+use CoreFramework\Filesystem\File\BaseAbstractFile;
/**
* A general binary file class
namespace CoreFramework\Filesystem\File;
// Import framework stuff
+use CoreFramework\Filesystem\File\BaseAbstractFile;
use CoreFramework\Generic\UnsupportedOperationException;
/**
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Filesystem\File\BaseAbstractFile;
use CoreFramework\Output\BaseOutput;
/**
+++ /dev/null
-<?php
-// Own namespace
-namespace CoreFramework\Wrapper\Fuse;
-
-// Import framework stuff
-use CoreFramework\Registry\Registerable;
-
-/**
- * A class for binding to the FUSE wrapper. This class requires the PHP
- * extension fuse.dll/so being added to your setup. If you want to use this
- * class, please activate and use the FUSE feature instead of using this class
- * directly. This gives you all required pre-tests. Please read there for
- * more detailed informations.
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-class FrameworkFuseWrapper extends FuseWrapper implements Registerable {
- /**
- * Get attributes
- *
- * @param $path Path to get attributes from
- * @param $stbuf An instance of a FuseStat class
- * @return Status code
- */
- public function FsGetAttr ($path, FuseStat $stbuf) {
- if (strcmp($path, '/') == 0 ) {
- $stbuf->st_mode = FUSE_S_IFDIR | 0750;
- $stbuf->st_nlink = 2;
- } else {
- $stbuf->st_uid = posix_getuid();
- $stbuf->st_gid = posix_getgid();
- $stbuf->st_mode = FUSE_S_IFREG | 0640;
- $stbuf->st_nlink = 1;
- $stbuf->st_size = 56;
- $stbuf->st_mtime = 1226379246;
- }
-
- return -FUSE_ENOERR;
- }
-
- /**
- * Open operation
- *
- * @param $path Path to open
- * @param $fi An instance of a FuseFileInfo class
- * @return Status code
- */
- public function FsOpen ($path, FuseFileInfo $fi) {
- if (($fi->flags & FUSE_O_ACCMODE) != FUSE_O_RDONLY) {
- return -FUSE_ENOACCES;
- } // END - if
-
- return -FUSE_ENOERR;
- }
-
- /**
- * Read operation
- *
- * @param $path Path to open
- * @param $buf Read data
- * @param $size Maximum expected size (?)
- * @param $offset Seek offset
- * @param $fi An instance of a FuseFileInfo class
- * @return Length of read data
- */
- public function FsRead ($path, &$buf, $size, $offset, FuseFileInfo $fi) {
- $data = 'You have implemented your first FUSE file system with PHP!' . PHP_EOL;
-
- if ($offset > strlen($data)) {
- return 0;
- } // END - if
-
- $buf = substr( $data, $offset, $size );
-
- return strlen($data);
- }
-
- /**
- * Read directory operation
- *
- * @param $path Path to open
- * @param $buf An array with all read entries
- * @return Status code
- */
- public function FsReadDir ($path, array &$buf) {
- if (strcmp($path, '/') != 0) {
- return -FUSE_ENOENT;
- } // END - if
-
- $buf[] = '.';
- $buf[] = '..';
- $buf[] = 'helloworld.txt';
-
- return -FUSE_ENOERR;
- }
-
-}
--- /dev/null
+<?php
+// Own namespace
+namespace CoreFramework\Wrapper\Fuse;
+
+// Import framework stuff
+use CoreFramework\Registry\Registerable;
+
+// Import library stuff
+use \FuseWrapper;
+
+/**
+ * A class for binding to the FUSE wrapper. This class requires the PHP
+ * extension fuse.dll/so being added to your setup. If you want to use this
+ * class, please activate and use the FUSE feature instead of using this class
+ * directly. This gives you all required pre-tests. Please read there for
+ * more detailed informations.
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+class FrameworkFuseWrapper extends FuseWrapper implements Registerable {
+ /**
+ * Get attributes
+ *
+ * @param $path Path to get attributes from
+ * @param $stbuf An instance of a FuseStat class
+ * @return Status code
+ */
+ public function FsGetAttr ($path, FuseStat $stbuf) {
+ if (strcmp($path, '/') == 0 ) {
+ $stbuf->st_mode = FUSE_S_IFDIR | 0750;
+ $stbuf->st_nlink = 2;
+ } else {
+ $stbuf->st_uid = posix_getuid();
+ $stbuf->st_gid = posix_getgid();
+ $stbuf->st_mode = FUSE_S_IFREG | 0640;
+ $stbuf->st_nlink = 1;
+ $stbuf->st_size = 56;
+ $stbuf->st_mtime = 1226379246;
+ }
+
+ return -FUSE_ENOERR;
+ }
+
+ /**
+ * Open operation
+ *
+ * @param $path Path to open
+ * @param $fi An instance of a FuseFileInfo class
+ * @return Status code
+ */
+ public function FsOpen ($path, FuseFileInfo $fi) {
+ if (($fi->flags & FUSE_O_ACCMODE) != FUSE_O_RDONLY) {
+ return -FUSE_ENOACCES;
+ } // END - if
+
+ return -FUSE_ENOERR;
+ }
+
+ /**
+ * Read operation
+ *
+ * @param $path Path to open
+ * @param $buf Read data
+ * @param $size Maximum expected size (?)
+ * @param $offset Seek offset
+ * @param $fi An instance of a FuseFileInfo class
+ * @return Length of read data
+ */
+ public function FsRead ($path, &$buf, $size, $offset, FuseFileInfo $fi) {
+ $data = 'You have implemented your first FUSE file system with PHP!' . PHP_EOL;
+
+ if ($offset > strlen($data)) {
+ return 0;
+ } // END - if
+
+ $buf = substr( $data, $offset, $size );
+
+ return strlen($data);
+ }
+
+ /**
+ * Read directory operation
+ *
+ * @param $path Path to open
+ * @param $buf An array with all read entries
+ * @return Status code
+ */
+ public function FsReadDir ($path, array &$buf) {
+ if (strcmp($path, '/') != 0) {
+ return -FUSE_ENOENT;
+ } // END - if
+
+ $buf[] = '.';
+ $buf[] = '..';
+ $buf[] = 'helloworld.txt';
+
+ return -FUSE_ENOERR;
+ }
+
+}
<?php
// Own namespace
-namespace CoreFramework\Captcha;
+namespace CoreFramework\Helper\Captcha;
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Helper\BaseHelper;
/**
* A general captcha
<?php
// Own namespace
-namespace CoreFramework\Helper;
+namespace CoreFramework\Helper\Image;
// Import framework stuff
+use CoreFramework\Helper\Captcha\BaseCaptcha;
use CoreFramework\Helper\Template\HelpableTemplate;
use CoreFramework\Template\CompileableTemplate;
<?php
// Own namespace
-namespace CoreFramework\Captcha;
+namespace CoreFramework\Helper\Captcha;
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
// Own namespace
namespace CoreFramework\Helper;
+// Import framework stuff
+use CoreFramework\Helper\BaseHelper;
+
/**
* A general purpose web helper. You should not instance this like all the other
* base classes. Instead write your own web helper class and inherit this class.
// Own namespace
namespace CoreFramework\Helper\Login;
+// Import framework stuff
+use CoreFramework\Helper\BaseHelper;
+
/**
* A general login helper class
*
use CoreFramework\Index\BaseIndex;
use CoreFramework\Index\Indexable;
use CoreFramework\Registry\Registerable;
-use CoreFramework\Stack\Index\IndexableStack;
+use CoreFramework\Stacker\Filesystem\BaseFileStacker;
+use CoreFramework\Stacker\Index\IndexableStack;
/**
* A FileStack index class
<?php
// Own namespace
-namespace CoreFramework\User\Point;
+namespace CoreFramework\User\Points;
// Import framework stuff
use CoreFramework\Criteria\Storing\StoreableCriteria;
<?php
// Own namespace
-namespace CoreFramework\Stack\File;
+namespace CoreFramework\Stacker\Filesystem;
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Filesystem\File\BaseBinaryFile;
use CoreFramework\Generic\UnsupportedOperationException;
use CoreFramework\Iterator\Filesystem\SeekableWritableFileIterator;
+use CoreFramework\Stacker\BaseStacker;
/**
* A general file-based stack class
<?php
// Own namespace
-namespace CoreFramework\Stack\Filesystem;
+namespace CoreFramework\Stacker\Filesystem;
// Import framework stuff
use CoreFramework\Filesystem\Block\CalculatableBlock;
+use CoreFramework\Filesystem\Stack\StackableFile;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Stacker\Filesystem\BaseFileStacker;
/**
* A FiFo file-based stack
// Own namespace
namespace CoreFramework\Connection;
+// Import framework stuff
+use CoreFramework\Generic\FrameworkException;
+
/**
* This exception is thrown if the connection is already registered in a matching
* connection registry.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class ConnectionAlreadyRegisteredException extends AbstractConnectionException {
+class ConnectionAlreadyRegisteredException extends FrameworkException {
/**
* A Constructor for this exception
*
// Own namespace
namespace CoreFramework\Database\Sql;
+// Import framework stuff
+use CoreFramework\Database\DatabaseException;
+
/**
* A SQL exception thrown when an SQL error was detected.
*
namespace CoreFramework\Deprecated;
// Import framework stuff
+use CoreFramework\Database\DatabaseException;
use CoreFramework\Generic\FrameworkInterface;
/**
// Own namespace
namespace CoreFramework\Deprecated;
+// Import framework stuff
+use CoreFramework\Database\DatabaseException;
+
/**
* An exception thrown when the save path is no directory
*
// Own namespace
namespace CoreFramework\Deprecated;
+// Import framework stuff
+use CoreFramework\Database\DatabaseException;
+
/**
* An exception thrown when the save path is read-protected
*
// Deprecated:
namespace CoreFramework\Deprecated;
+// Import framework stuff
+use CoreFramework\Database\DatabaseException;
+
/**
* An exception thrown when the save path is write-protected
*
// Import framework stuff
use CoreFramework\Generic\FrameworkException;
+use CoreFramework\Helper\BaseHelper;
/**
* An exception thrown when the form is still opened but we e.g. shall flush
// Import framework stuff
use CoreFramework\Generic\FrameworkException;
+use CoreFramework\Helper\BaseHelper;
/**
* An exception thrown when the form name is invalid (set to false)
namespace CoreFramework\Deprecated;
// Import framework stuff
+use CoreFramework\Generic\FrameworkException;
use CoreFramework\Generic\FrameworkInterface;
/**
namespace CoreFramework\Deprecated;
// Import framework stuff
+use CoreFramework\Generic\FrameworkException;
use CoreFramework\Generic\FrameworkInterface;
/**
// Own namespace
namespace CoreFramework\Object;
+// Import framework stuff
+use CoreFramework\Generic\FrameworkException;
+
/**
* An exception thrown when an class instance does not implement a given interface
*
namespace CoreFramework\Response;
// Import framework stuff
+use CoreFramework\Generic\FrameworkException;
use CoreFramework\Generic\FrameworkInterface;
/**
<?php
// Own namespace
-namespace CoreFramework\Captcha;
+namespace CoreFramework\Helper\Captcha;
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
-
+use CoreFramework\Helper\Helper;
/**
* An interface for solveable CAPTCHAs
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-interface SolveableCaptcha extends FrameworkInterface {
+interface SolveableCaptcha extends Helper {
/**
* Initiates the CAPTCHA
*
<?php
// Own namespace
-namespace CoreFramework\Database\Frontend;
+namespace CoreFramework\Database\Frontend\Points;
// Import framework stuff
use CoreFramework\Database\Frontend\DatabaseWrapper;
namespace CoreFramework\Helper\Login;
// Import framework stuff
+use CoreFramework\Helper\Helper;
use CoreFramework\Response\Responseable;
/**
// Own namespace
namespace CoreFramework\Helper\Template;
+// Import framework stuff
+use CoreFramework\Helper\Helper;
+
/**
* A helper interface for template helper ;)
*
<?php
// Own namespace
-namespace CoreFramework\Stack\Index;
+namespace CoreFramework\Stacker\Index;
// Import framework stuff
use CoreFramework\Filesystem\Block\CalculatableBlock;
function resolveActionByRequest (Requestable $requestInstance);
/**
- * Checks whether the given action is valid
+ * Checks whether the given action is valid within namespace
*
+ * @param $namespace Namespace to check
* @param $actionName The default action we shall execute
* @return $isValid Whether the given action is valid
* @throws EmptyVariableException Thrown if given action is not set
*/
- function isActionValid ($actionName);
+ function isActionValid ($namespace, $actionName);
}