mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
fix
This commit is contained in:
parent
c7f5a84398
commit
c5a32b11f3
8 changed files with 15 additions and 13 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue