Skip to content

Commit

Permalink
version 2.3.3 PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoluciano committed Mar 24, 2023
1 parent b5434c7 commit fd92576
Show file tree
Hide file tree
Showing 26 changed files with 104 additions and 387 deletions.
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/2.0.0/active.svg)](https://github.com/xoopscube/xcl)
![X-Updare Store](https://img.shields.io/website?down_color=red&down_message=Offline&label=X-Update%20Store&style=for-the-badge&up_color=308311&up_message=online&url=https%3A%2F%2Fxoopscube.xyz%2Fuploads%2Fxupdatemaster%2Fstores_json_V1.txt)
[![XOOPSCube powered-by-electricity](https://img.shields.io/badge/Powered%20by-Electricity-face74?style=for-the-badge&labelColor=203244&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiNmYWNlNzQiIGQ9Ik0xNC42OSAyLjIxTDQuMzMgMTEuNDljLS42NC41OC0uMjggMS42NS41OCAxLjczTDEzIDE0bC00Ljg1IDYuNzZjLS4yMi4zMS0uMTkuNzQuMDggMS4wMWMuMy4zLjc3LjMxIDEuMDguMDJsMTAuMzYtOS4yOGMuNjQtLjU4LjI4LTEuNjUtLjU4LTEuNzNMMTEgMTBsNC44NS02Ljc2Yy4yMi0uMzEuMTktLjc0LS4wOC0xLjAxYS43Ny43NyAwIDAgMC0xLjA4LS4wMnoiLz48L3N2Zz4=)](https://github.com/xoopscube)
[![XCL](https://img.shields.io/badge/XCL-Made%20with%20passion-b0201d?style=for-the-badge&labelColor=991015&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJtMTIgMjEuMzVsLTEuNDUtMS4zMkM1LjQgMTUuMzYgMiAxMi4yNyAyIDguNUMyIDUuNDEgNC40MiAzIDcuNSAzYzEuNzQgMCAzLjQxLjgxIDQuNSAyLjA4QzEzLjA5IDMuODEgMTQuNzYgMyAxNi41IDNDMTkuNTggMyAyMiA1LjQxIDIyIDguNWMwIDMuNzctMy40IDYuODYtOC41NSAxMS41M0wxMiAyMS4zNVoiLz48L3N2Zz4=)](https://github.com/xoopscube)

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/2.0.0/active.svg)](https://github.com/xoopscube/core)
![License GPL](https://img.shields.io/badge/License-GPL-green)
![X-Updare Store](https://img.shields.io/badge/X--Update%20Store-Pending-red)
![X-Updare Store](https://img.shields.io/badge/XOOPSCube%20Package-XCL-blue)

## ///// — XCube Core :: Base Platform System
## ///// — XCube Core Base Platform System

![alt text](https://repository-images.githubusercontent.com/347963527/8c04d798-5562-4443-8e55-656298649231)


MODULE | XooNIps 4
MODULE | XCube Core
------------ | -------------
Description | XCube Core modular architecture.
Render Engine | free-choice
Version | 2.3.1
Author | Minahito
Update | @gigamaster XCL PHP7
Copyright | 2005-2022 Authors
Description | XCube minimalist core for XCL web application platform.
Render Engine | Smarty Template Engine, free-choice
Version | 2.33.0
Author | Nobuhiro Yasutomi @nbuy XCL PHP8
Author | Nuno Luciano @gigamaster XCL PHP7
Author | Kazuhisa MINATO original work
Copyright | 2005-2023 Authors
License | BSD


Expand All @@ -30,9 +34,4 @@ License | BSD

-----

### Test / WIP

⚡ 🔨 🎨 WIP UI for XCL PHP7
Test on PHP 7.4.+ MySQL 5.7.+ / MariaDB 10.+
Test on PHP 7.2.+ MySQL 5.6.+

8 changes: 4 additions & 4 deletions html/core/XCube_ActionFilter.class.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php
/**
* XCube_ActionFilter.class.php
* /core/XCube_ActionFilter.class.php
* [Abstract] Used for initialization, post-processing and other purposes by the controller.
* This class is an abstract class.
* Typically, an abstract defines an interface for other classes to extend.
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief [Abstract] Used for initialization, post-processing and other purposes by the controller.
*
* This class is chained and called by the initialization procedure of the controller class.
* Developers or users can use the subclass to customize dynamically.
Expand Down
8 changes: 4 additions & 4 deletions html/core/XCube_ActionForm.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_ActionForm.class.php
* /core/XCube_ActionForm.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief [Abstract] Fetches input values, validates fetched values and passes them to an object.
*
Expand Down Expand Up @@ -648,7 +648,7 @@ public static function &factoryClass(string $dependName ) {
$_cache[ $dependName ] = new $class_name();
} else {
// FIXME:: use delegate?
die( "This is an error message of Alpha or Beta series. ${dependName} Validator is not found." );
die( "This is an error message of Alpha or Beta series. {$dependName} Validator is not found." );
}
}

Expand Down
5 changes: 3 additions & 2 deletions html/core/XCube_Controller.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
/**
* Virtual or Actual front controller class.
* /core/XCube_Controller.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief This is an abstract class.
* A subclass of this class has many impositions that finally establishes the root object and implements a significant amount of actual logic.
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_Delegate.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_Delegate.class.php
* /core/XCube_Delegate.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/11/16
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief XCube_Ref class is an adapted reference pointer for XCube_Delegate.
* 1) XCube_Ref : virtual function pointer
Expand Down
9 changes: 5 additions & 4 deletions html/core/XCube_FormFile.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
/**
* XCube_FormFile.class.php
* /core/XCube_FormFile.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Nobuhiro YASUTOMI, PHP8
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief @WARNING
* This class is a simple wrapper class to process the uploaded file.
Expand Down Expand Up @@ -119,7 +120,7 @@ public function getExtension() {
public function setExtension( $ext ) {
$filename = $this->getFileName();
if ( preg_match( "/(.+)\.\w+$/", $filename, $match ) ) {
$this->setFileName( $match[1] . ".${ext}" );
$this->setFileName( $match[1] . ".{$ext}" );
}
}

Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_HttpContext.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_HttpContext.class.php
* /core/XCube_HttpContext.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief Encapsulates major HTTP specific information about an HTTP request
*/
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_Identity.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_Identity.class.php
* /core/XCube_Identity.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief Defines the basic functionality of an identity object.
*/
Expand Down
16 changes: 8 additions & 8 deletions html/core/XCube_LanguageManager.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_LanguageManager.class.php
* /core/XCube_LanguageManager.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief This class manages resources of each languages.
* By requests of other components, this class loads files, or checks the existence of the specified
Expand Down Expand Up @@ -62,7 +62,7 @@ public function setLocale( $locale ) {
*
* @return string locale name
*/
public function getLocale(): string
public function getLocale()
{
return $this->mLanguageName;
}
Expand All @@ -72,7 +72,7 @@ public function getLocale(): string
*
* @param string $language language name
*/
public function setLanguage(string $language ) {
public function setLanguage( $language ) {
$this->mLanguageName = $language;
}

Expand All @@ -81,7 +81,7 @@ public function setLanguage(string $language ) {
*
* @return string language name
*/
public function getLanguage(): string
public function getLanguage()
{
return $this->mLanguageName;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ public function translate(string $word ) {
* @access protected
* @return string
*/
public function getFallbackLanguage(): string
public function getFallbackLanguage()
{
return "en"; // !Todo check UTF-8
}
Expand All @@ -178,7 +178,7 @@ public function getFallbackLanguage(): string
* @access protected
* @return string
*/
public function getFallbackLocale(): string
public function getFallbackLocale()
{
return "EN"; // !Todo check UTF-8
}
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_Object.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_Object.class.php
* /core/XCube_Object.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
*/

Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_PageNavigator.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_PageNavigator.class.php
* /core/XCube_PageNavigator.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief This is a utility class which acquires page navigation information
* --- sort, offset and limit --- semiautomatically.
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_Permission.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_Permission.class.php
* /core/XCube_Permission.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief XCube_PermissionUtils
* @remark In some other languages, such as C, a void function can't be used in an expression, only as a statement.
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_Property.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_Property.class.php
* /core/XCube_Property.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief [Abstract] Defines an interface for the property class group.
* XCube_PropertyInterface is designed to work in XCube_ActionForm and XCube_Service (further dev).
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_RenderCache.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_RenderCache.class.php
* /core/XCube_RenderCache.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
*/

Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_RenderSystem.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* XCube_RenderSystem.class.php
* /core/XCube_RenderSystem.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief This is a target whom a render-system renders. This has a buffer and receives
* a result of a render-system to the buffer. A developer can control rendering
Expand Down
6 changes: 3 additions & 3 deletions html/core/XCube_RoleManager.class.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* XCube_RoleManager.class.php
* /core/XCube_RoleManager.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief Provider class to manage role information with the store.
*/
Expand Down
9 changes: 5 additions & 4 deletions html/core/XCube_Root.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
/**
* XCube_Root.class.php
* /core/XCube_Root.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Nobuhiro YASUTOMI, PHP8
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/11/20
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief [FINAL CLASS] The root object which collects exchangeable managers.
* This class offers the access course same as global variable for a logic in old mechanism.
Expand All @@ -21,7 +22,7 @@

if ( PHP_VERSION_ID >= 50000 ) {
function XC_CLASS_EXISTS( $className ) {
return class_exists( $className, false );
return $className && class_exists( $className, false );
}
} else {
function XC_CLASS_EXISTS( $className ) {
Expand Down
9 changes: 5 additions & 4 deletions html/core/XCube_Service.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
/**
* XCube_Service.class.php
* /core/XCube_Service.class.php
* @package XCube
* @version XCL 2.3.1
* @version XCL 2.3.3
* @author Nobuhiro YASUTOMI, PHP8
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Minahito, 2008/10/12
* @copyright (c) 2005-2022 The XOOPSCube Project
* @copyright (c) 2005-2023 The XOOPSCube Project
* @license BSD-3-Clause
* @brief [Abstract] This class is a collection for functions.
* @bug This class does NOT work perfectly. It's fatal...
Expand Down Expand Up @@ -182,7 +183,7 @@ public function call( $operation, $params ) {
return $ret;
}

$this->mClientErrorStr = "operation ${operation} not present.";
$this->mClientErrorStr = "operation {$operation} not present.";

return null;
}
Expand Down
Loading

0 comments on commit fd92576

Please sign in to comment.