]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Tue, 28 Feb 2017 19:51:53 +0000 (20:51 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 28 Feb 2017 21:11:02 +0000 (22:11 +0100)
- added namespace to class config entries
- added "import" of SeekableWritableFileIterator and BaseIterator
- added "import" of Iterator (SPL)
- added "import" of BaseFeature and Feature
- added missing class EmailVerifierFilter
- added "import" of BaseFilter, Filterable, Requestable and Responseable
- added "import" of BaseInputTextFile and CsvInputStreamer
- also added missing namespace in class

Signed-off-by: Roland Häder <roland@mxchange.org>
15 files changed:
framework/config.php
framework/main/classes/class_BaseFrameworkSystem.php
framework/main/classes/feature/class_
framework/main/classes/feature/fuse/class_FuseFeature.php
framework/main/classes/file_directories/output/raw/class_FrameworkRawFileOutputPointer.php
framework/main/classes/file_directories/output/text/class_FrameworkTextFileOutputPointer.php
framework/main/classes/file_directories/text/input/class_BaseInputTextFile.php
framework/main/classes/file_directories/text/input/csv/class_CsvInputFile.php
framework/main/classes/filter/class_
framework/main/classes/filter/verifier/class_EmailVerifierFilter.php [new file with mode: 0644]
framework/main/classes/index/class_BaseIndex.php
framework/main/classes/iterator/class_
framework/main/classes/iterator/default/class_DefaultIterator.php
framework/main/classes/iterator/file/class_FileIterator.php
framework/main/classes/stacker/file/class_BaseFileStack.php

index c0afdd57133bfdb9bf062eee3b42b41c352f48e0..90517550700d2342e01208c7e5b977bfdda4f7e8 100644 (file)
@@ -95,10 +95,10 @@ $cfg->setConfigEntry('compile_output_path', 'templates/_compiled/');
 $cfg->setConfigEntry('html_template_class', 'CoreFramework\Template\Engine\HtmlTemplateEngine');
 
 // CFG: DECO-XML-REWRITER-TEMPLATE-CLASS
-$cfg->setConfigEntry('deco_xml_rewriter_template_class', 'XmlRewriterTemplateDecorator');
+$cfg->setConfigEntry('deco_xml_rewriter_template_class', 'CoreFramework\Template\Xml\XmlRewriterTemplateDecorator');
 
 // CFG: DEBUG-HTML-CLASS
-$cfg->setConfigEntry('debug_html_class', 'DebugWebOutput');
+$cfg->setConfigEntry('debug_html_class', 'CoreFramework\Output\Debug\DebugWebOutput');
 
 // CFG: DEBUG-CONSOLE-CLASS
 $cfg->setConfigEntry('debug_console_class', 'CoreFramework\Debug\Output\DebugConsoleOutput');
@@ -173,7 +173,7 @@ $cfg->setConfigEntry('cache_class', 'MemoryCache');
 $cfg->setConfigEntry('search_criteria_class', 'CoreFramework\Criteria\Search\SearchCriteria');
 
 // CFG: DATASET-CRITERIA-CLASS
-$cfg->setConfigEntry('dataset_criteria_class', 'DataSetCriteria');
+$cfg->setConfigEntry('dataset_criteria_class', 'CoreFramework\Criteria\DataSet\DataSetCriteria');
 
 // CFG: UPDATE-CRITERIA-CLASS
 $cfg->setConfigEntry('update_criteria_class', 'CoreFramework\Criteria\Update\UpdateCriteria');
@@ -194,7 +194,7 @@ $cfg->setConfigEntry('file_input_class', 'CoreFramework\Stream\Filesystem\FileIo
 $cfg->setConfigEntry('file_output_class', 'CoreFramework\Stream\Filesystem\FileIoStream');
 
 // CFG: EMAIL-VALIDATOR-FILTER-CLASS
-$cfg->setConfigEntry('email_validator_filter_class', 'EmailValidatorFilter');
+$cfg->setConfigEntry('email_validator_filter_class', 'CoreFramework\Filter\Validator\Email\EmailValidatorFilter');
 
 // CFG: USERNAME-VALIDATOR-FILTER-CLASS
 $cfg->setConfigEntry('username_validator_filter_class', 'CoreFramework\Filter\Validator\Username\UserNameValidatorFilter');
@@ -215,7 +215,7 @@ $cfg->setConfigEntry('username_verifier_filter_class', 'CoreFramework\Filter\Ver
 $cfg->setConfigEntry('user_guest_verifier_filter_class', 'CoreFramework\Filter\Verifier\User\UserGuestVerifierFilter');
 
 // CFG: EMAIL-VERIFIER-FILTER-CLASS
-$cfg->setConfigEntry('email_verifier_filter_class', 'EmailVerifierFilter');
+$cfg->setConfigEntry('email_verifier_filter_class', 'CoreFramework\Filter\Verifier\Email\EmailVerifierFilter');
 
 // CFG: PASSWORD-VERIFIER-FILTER-CLASS
 $cfg->setConfigEntry('password_verifier_filter_class', 'CoreFramework\Filter\Verifier\Password\PasswordVerifierFilter');
@@ -224,7 +224,7 @@ $cfg->setConfigEntry('password_verifier_filter_class', 'CoreFramework\Filter\Ver
 $cfg->setConfigEntry('passwd_guest_verifier_filter_class', 'CoreFramework\Filter\Verifier\User\PasswordGuestVerifierFilter');
 
 // CFG: EMAIL-CHANGE-FILTER-CLASS
-$cfg->setConfigEntry('email_change_filter_class', 'EmailChangeFilter');
+$cfg->setConfigEntry('email_change_filter_class', 'CoreFramework\Filter\Change\Email\EmailChangeFilter');
 
 // CFG: PASSWORD-CHANGE-FILTER-CLASS
 $cfg->setConfigEntry('password_change_filter_class', 'CoreFramework\Filter\Change\Password\PasswordChangeFilter');
@@ -269,7 +269,7 @@ $cfg->setConfigEntry('mailer_class', 'CoreFramework\Mailer\Debug\DebugMailer');
 $cfg->setConfigEntry('xml_parser_class', 'CoreFramework\Parser\Xml\XmlParser');
 
 // CFG: DECO-COMPACTING-XML-PARSER-CLASS
-$cfg->setConfigEntry('deco_compacting_xml_parser_class', 'XmlCompactorDecorator');
+$cfg->setConfigEntry('deco_compacting_xml_parser_class', 'CoreFramework\Parser\Xml\XmlCompactorDecorator');
 
 // CFG: MATH-PRIME
 $cfg->setConfigEntry('math_prime', 591623);
@@ -374,22 +374,22 @@ $cfg->setConfigEntry('database_cache_enabled', FALSE);
 $cfg->setConfigEntry('directory_class', 'CoreFramework\Filesytem\Pointer\FrameworkDirectoryPointer');
 
 // CFG: FILE-RAW-INPUT-CLASS
-$cfg->setConfigEntry('file_raw_input_class', 'FrameworkRawFileInputPointer');
+$cfg->setConfigEntry('file_raw_input_class', 'CoreFramework\Filesystem\Pointer\Input\FrameworkRawFileInputPointer');
 
 // CFG: FILE-RAW-OUTPUT-CLASS
-$cfg->setConfigEntry('file_raw_output_class', 'FrameworkRawFileOutputPointer');
+$cfg->setConfigEntry('file_raw_output_class', 'CoreFramework\Filesystem\Pointer\Output\FrameworkRawFileOutputPointer');
 
 // CFG: FILE-RAW-INPUT-OUTPUT-CLASS
-$cfg->setConfigEntry('file_raw_input_output_class', 'FrameworkFileInputOutputPointer');
+$cfg->setConfigEntry('file_raw_input_output_class', 'CoreFramework\Filesystem\Pointer\FrameworkFileInputOutputPointer');
 
 // CFG: TEXT-FILE-INPUT-CLASS
 $cfg->setConfigEntry('text_file_input_class', 'CoreFramework\Filesystem\Pointer\Input\FrameworkTextFileInputPointer');
 
 // CFG: CSV-INPUT-FILE-CLASS
-$cfg->setConfigEntry('csv_input_file_class', 'CsvInputFile');
+$cfg->setConfigEntry('csv_input_file_class', 'CoreFramework\Filesystem\Input\Csv\CsvInputFile');
 
 // CFG: FILE-ITERATOR-CLASS
-$cfg->setConfigEntry('file_iterator_class', 'FileIterator');
+$cfg->setConfigEntry('file_iterator_class', 'CoreFramework\Iterator\File\FileIterator');
 
 // CFG: FILE-STACK-PRE-ALLOCATE-ENABLED
 $cfg->setConfigEntry('file_stack_pre_allocate_enabled', 'Y');
@@ -422,7 +422,7 @@ $cfg->setConfigEntry('task_list_class', 'CoreFramework\Lists\Task\TaskList');
 $cfg->setConfigEntry('list_group_class', 'CoreFramework\Lists\Group\ListGroupList');
 
 // CFG: DEFAULT-ITERATOR-CLASS
-$cfg->setConfigEntry('default_iterator_class', 'DefaultIterator');
+$cfg->setConfigEntry('default_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
 
 // CFG: ACTIVE-TASK-VISITOR-CLASS
 $cfg->setConfigEntry('active_task_visitor_class', 'ActiveTaskVisitor');
@@ -458,7 +458,7 @@ $cfg->setConfigEntry('menu_template_class', 'CoreFramework\Template\Engine\MenuT
 $cfg->setConfigEntry('menu_template_extension', '.xml');
 
 // CFG: FEATURE-FUSE-CLASS
-$cfg->setConfigEntry('feature_fuse_class', 'FuseFeature');
+$cfg->setConfigEntry('feature_fuse_class', 'CoreFramework\Feature\Fuse\FuseFeature');
 
 // CFG: TEMP-FILE-PATH
 $cfg->setConfigEntry('temp_file_path', sys_get_temp_dir());
index 6424b78859e7dfbc912a0dca94596bf41ccb910a..2c0d7db0767c7a1b0ab0bc2ad8a0e9702bad1138 100644 (file)
@@ -43,6 +43,7 @@ use CoreFramework\Wrapper\Database\DatabaseWrapper;
 
 // Import SPL stuff
 use \stdClass;
+use \Iterator;
 use \ReflectionClass;
 
 /**
index 89d8688641b53799ace55168d90eb07628e66924..e9991521b819e5ffef7b84a94297b76d284d4b73 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace CoreFramework\Feature\!!!;
+
+// Import framework stuff
+use CoreFramework\Feature\BaseFeature;
+use CoreFramework\Feature\Feature;
+
 /**
  * A ??? feature class
  *
index 60d33883111e6e3fb00ca9953136fc540cbe02f9..348fbf8b6603467f63a511119144a0f6ff98fc1e 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace CoreFramework\Feature\Fuse;
 
+// Import framework stuff
+use CoreFramework\Feature\BaseFeature;
+use CoreFramework\Feature\Feature;
+
 /**
  * A FUSE feature class
  *
index d54966d83ca4beebd26ed5d012ac14d9e7ead30f..893c4f56c8ea8927c83234b2a1945e146fde79c8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace CoreFramework\Filesystem\Pointer\Raw;
+namespace CoreFramework\Filesystem\Pointer\Output;
 
 // Import framework stuff
 use CoreFramework\FileSystem\BaseFileIo;
index 6f95ccdfe869d9829b45b8d8f5d89757b34e9a69..f7e5b02557f25e5022ffb990876906626dd491b1 100644 (file)
@@ -29,7 +29,7 @@ use CoreFramework\Generic\NullPointerException;
  * 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 FrameworkRawFileOutputPointer extends BaseFileIo implements OutputPointer {
+class FrameworkTextFileOutputPointer extends BaseFileIo implements OutputPointer {
        /**
         * Protected constructor
         *
@@ -50,7 +50,7 @@ class FrameworkRawFileOutputPointer extends BaseFileIo implements OutputPointer
         * @throws      FileIoException                 If fopen() returns not a file resource
         * @return      void
         */
-       public static final function createFrameworkRawFileOutputPointer ($fileName, $mode) {
+       public static final function createFrameworkTextFileOutputPointer ($fileName, $mode) {
                // Some pre-sanity checks...
                if (is_null($fileName)) {
                        // No filename given
@@ -65,7 +65,7 @@ class FrameworkRawFileOutputPointer extends BaseFileIo implements OutputPointer
                } // END - if
 
                // Create new instance
-               $pointerInstance = new FrameworkRawFileOutputPointer();
+               $pointerInstance = new FrameworkTextFileOutputPointer();
 
                // Set file pointer and file name
                $pointerInstance->setPointer($filePointer);
index a8ff8874777c24f0451861ecad842bbd1be63363..471e1fa7611991d3d6b9396aa280574d30638614 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Filesystem\Text;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Filesystem\File\BaseTextFile;
 
 /**
  * A general text input file class
index e004980beed146284a8875d8ebe0fd9873801966..93c9aec16c2511d26cbb3f059d71bf992dde65d0 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace CoreFramework\Filesystem\Input\Csv;
+
+// Import framework stuff
+use CoreFramework\Filesystem\Text\BaseInputTextFile;
+use CoreFramework\Stream\Filesystem\CsvInputStreamer;
+
 /**
  * A CSV file input class for writing CSV files
  *
index e94d8e72470f726bb32bafd9c2a86e7dcf30e4bc..9dccabab0dd257a5f661e276575f72fb564dd1a5 100644 (file)
@@ -56,7 +56,7 @@ class ???Filter extends BaseFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Implement this!
-               $this->partialStub("Please implement this method.");
+               $this->partialStub('Please implement this method.');
        }
 
 }
diff --git a/framework/main/classes/filter/verifier/class_EmailVerifierFilter.php b/framework/main/classes/filter/verifier/class_EmailVerifierFilter.php
new file mode 100644 (file)
index 0000000..2d3278b
--- /dev/null
@@ -0,0 +1,71 @@
+<?php
+// Own namespace
+namespace CoreFramework\Filter\Verifier\Email;
+
+// Import framework stuff
+use CoreFramework\Filter\BaseFilter;
+use CoreFramework\Filter\Filterable;
+use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
+
+/**
+ * A filter for email verifying
+ *
+ * @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 EmailVerifierFilter extends BaseFilter implements Filterable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this filter class
+        *
+        * @return      $filterInstance         An instance of this filter class
+        */
+       public final static function createEmailVerifierFilter () {
+               // Get a new instance
+               $filterInstance = new EmailVerifierFilter();
+
+               // Return the instance
+               return $filterInstance;
+       }
+
+       /**
+        * Executes the filter with given request and response objects
+        *
+        * @param       $requestInstance        An instance of a class with an Requestable interface
+        * @param       $responseInstance       An instance of a class with an Responseable interface
+        * @return      void
+        * @throws      FilterChainException    If this filter fails to operate
+        * @todo        0% done
+        */
+       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               // Implement this!
+               $this->partialStub('Please implement this method.');
+       }
+
+}
index d035d61766a4b2a324f5bfd679a70f3eff7f5691..514b00a8074b3571dd6ceaa96ce4401fe10de622 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Index;
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Filesystem\File\BaseBinaryFile;
+use CoreFramework\Iterator\Filesystem\SeekableWritableFileIterator;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 5fc5dc537c366df2b1e5a880c71fe4eaad679c82..f91439a0b6982d9c31d5ac2158cda7ae8757e941 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace CoreFramework\Iterator\!!!;
+
+// Import framework stuff
+use CoreFramework\Iterator\BaseIterator;
+
 /**
  * A ??? iterator
  *
index f48cc66b645a937e32be86d55f0604b49edba155..1d0ec884d996b10e31781a9cc8ee1467bcb54f98 100644 (file)
@@ -3,8 +3,12 @@
 namespace CoreFramework\Iterator;
 
 // Import framework stuff
+use CoreFramework\Iterator\BaseIterator;
 use CoreFramework\Lists\Listable;
 
+// Import SPL stuff
+use \Iterator;
+
 /**
  * A Default iterator
  *
index 6e0f1957772cde1b7a489014027190fd55536d8a..4006faa6be5084dd44a52a321882eafa44f0b706 100644 (file)
@@ -4,6 +4,8 @@ namespace CoreFramework\Iterator\File;
 
 // Import framework stuff
 use CoreFramework\Filesystem\Block;
+use CoreFramework\Iterator\BaseIterator;
+use CoreFramework\Iterator\Filesystem\SeekableWritableFileIterator;
 
 /**
  * A file iterator
index 43ac9cca75d20987518285e72e99c767b2ae031b..b81d140d11e908b492883995b2e478e5e7cabf37 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Stack\File;
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Filesystem\File\BaseBinaryFile;
+use CoreFramework\Iterator\Filesystem\SeekableWritableFileIterator;
 
 /**
  * A general file-based stack class