diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-02-12 19:44:00 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-02-12 19:44:00 +0100 |
commit | e32f2f1749c691f6c778261a8f8d300573895345 (patch) | |
tree | 84a4293c7f0781243259d21f2472273c0f52fada /app/class/Page.php | |
parent | 0937c851313b5098dc15e5d411b6c3638cbd5116 (diff) | |
download | wcms-e32f2f1749c691f6c778261a8f8d300573895345.tar.gz wcms-e32f2f1749c691f6c778261a8f8d300573895345.zip |
Link to refactoring close #48
Diffstat (limited to 'app/class/Page.php')
-rw-r--r-- | app/class/Page.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/app/class/Page.php b/app/class/Page.php index c57ecc4..d5b43b5 100644 --- a/app/class/Page.php +++ b/app/class/Page.php @@ -28,7 +28,6 @@ class Page extends Dbitem protected $customhead; protected $secure; protected $interface; - protected $linkfrom; protected $linkto; protected $templatebody; protected $templatecss; @@ -89,7 +88,6 @@ class Page extends Dbitem $this->setcustomhead(''); $this->setsecure(Config::defaultprivacy()); $this->setinterface('main'); - $this->setlinkfrom([]); $this->setlinkto([]); $this->settemplatebody(''); $this->settemplatecss(''); @@ -257,21 +255,6 @@ class Page extends Dbitem return $this->interface; } - public function linkfrom($option = 'array') - { - if ($option == 'json') { - $linkfrom = json_encode($this->linkfrom); - } elseif ($option == 'array') { - $linkfrom = $this->linkfrom; - } elseif ($option == 'sort') { - return count($this->linkfrom); - } elseif ($option == 'string') { - return implode(', ', $this->linkfrom); - } - return $linkfrom; - - } - public function linkto($option = 'array') { if ($option == 'json') { @@ -597,20 +580,6 @@ class Page extends Dbitem } } - public function setlinkfrom($linkfrom) - { - if (is_array($linkfrom)) { - $this->linkfrom = $linkfrom; - } elseif (is_string($linkfrom)) { - $linkfromjson = json_decode($linkfrom); - if (is_array($linkfromjson)) { - $this->linkfrom = $linkfromjson; - } - } elseif ($linkfrom === null) { - $this->linkfrom = []; - } - } - public function setlinkto($linkto) { if (is_array($linkto)) { |