1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +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';
class Category {
private $properties = [];
protected $properties = [];
private $id;
private $name;
@ -106,8 +106,8 @@ class Category {
return false;
}
foreach ($row as $key => $value) {
//$this->$key = $value;
$this->properties[$key] = $value;
@$this->$key = $value;
//$this->properties[$key] = $value;
}
return true;
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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