1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
Daniel Neto 2023-02-27 10:27:25 -03:00
parent c7f5a84398
commit c5a32b11f3
8 changed files with 15 additions and 13 deletions

View file

@ -10,7 +10,7 @@ require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/video.php'; require_once $global['systemRootPath'] . 'objects/video.php';
class Category { class Category {
private $properties = []; protected $properties = [];
private $id; private $id;
private $name; private $name;
@ -106,8 +106,8 @@ class Category {
return false; return false;
} }
foreach ($row as $key => $value) { foreach ($row as $key => $value) {
//$this->$key = $value; @$this->$key = $value;
$this->properties[$key] = $value; //$this->properties[$key] = $value;
} }
return true; return true;
} }

View file

@ -10,7 +10,7 @@ require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/video.php'; require_once $global['systemRootPath'] . 'objects/video.php';
class Comment { class Comment {
private $properties = []; protected $properties = [];
protected $id; protected $id;
protected $comment; protected $comment;
@ -69,8 +69,8 @@ class Comment {
return false; return false;
} }
foreach ($row as $key => $value) { foreach ($row as $key => $value) {
//$this->$key = $value; @$this->$key = $value;
$this->properties[$key] = $value; //$this->properties[$key] = $value;
} }
return true; return true;
} }

View file

@ -9,7 +9,7 @@ require_once $global['systemRootPath'] . 'objects/user.php';
class CommentsLike class CommentsLike
{ {
private $properties = []; protected $properties = [];
private $id; private $id;
private $like; private $like;
private $comments_id; private $comments_id;
@ -48,8 +48,8 @@ class CommentsLike
return false; return false;
} }
foreach ($like as $key => $value) { foreach ($like as $key => $value) {
//$this->$key = $value; @$this->$key = $value;
$this->properties[$key] = $value; //$this->properties[$key] = $value;
} }
} }

View file

@ -81,6 +81,7 @@ class Configuration extends ObjectYPT{
public function getVersion() public function getVersion()
{ {
var_dump($this->version, $this);
if (empty($this->version)) { if (empty($this->version)) {
return " 0.1"; return " 0.1";
} }

View file

@ -102,6 +102,7 @@ $global['dont_show_us_flag'] = false;
if (empty($doNotStartSessionbaseIncludeConfig)) { if (empty($doNotStartSessionbaseIncludeConfig)) {
$config = new Configuration(); $config = new Configuration();
//var_dump($config);exit;
@session_write_close(); @session_write_close();
// server should keep session data for AT LEAST 1 hour // server should keep session data for AT LEAST 1 hour

View file

@ -60,8 +60,8 @@ class Wallet extends ObjectYPT {
if (empty($row)) if (empty($row))
return false; return false;
foreach ($row as $key => $value) { foreach ($row as $key => $value) {
//$this->$key = $value; @$this->$key = $value;
$this->properties[$key] = $value; //$this->properties[$key] = $value;
} }
return true; return true;
} }

View file

@ -27,7 +27,7 @@ class ClassBuilder
private $name; private $name;
/** @var Property[] */ /** @var Property[] */
private $properties = []; protected $properties = [];
/** @var Method[] */ /** @var Method[] */
private $methods = []; private $methods = [];

View file

@ -29,7 +29,7 @@ class Definition
private $factory; private $factory;
private $shared = true; private $shared = true;
private $deprecation = []; private $deprecation = [];
private $properties = []; protected $properties = [];
private $calls = []; private $calls = [];
private $instanceof = []; private $instanceof = [];
private $autoconfigured = false; private $autoconfigured = false;