daux.io/libs/Format/Confluence/Config.php

67 lines
1.4 KiB
PHP
Raw Normal View History

<?php namespace Todaymade\Daux\Format\Confluence;
use Todaymade\Daux\BaseConfig;
class Config extends BaseConfig
{
public function shouldAutoDeleteOrphanedPages() {
2019-12-07 11:22:40 +01:00
if ($this->hasValue('delete')) {
return $this->getValue('delete');
}
return false;
}
public function getUpdateThreshold() {
2019-12-07 11:22:40 +01:00
return $this->hasValue('update_threshold') ? $this->getValue('update_threshold') : 2;
}
public function getPrefix() {
2019-12-07 11:22:40 +01:00
return $this->getValue('prefix');
}
public function getBaseUrl() {
2019-12-07 11:22:40 +01:00
return $this->getValue('base_url');
}
public function getUser() {
2019-12-07 11:22:40 +01:00
return $this->getValue('user');
}
public function getPassword() {
2019-12-07 11:22:40 +01:00
return $this->getValue('pass');
}
public function getSpaceId() {
2019-12-07 11:22:40 +01:00
return $this->getValue('space_id');
}
public function hasAncestorId() {
2019-12-07 11:22:40 +01:00
return $this->hasValue('ancestor_id');
}
public function getAncestorId() {
2019-12-07 11:22:40 +01:00
return $this->getValue('ancestor_id');
}
public function setAncestorId($value) {
2019-12-07 11:22:40 +01:00
$this->setValue('ancestor_id', $value);
}
public function hasRootId() {
2019-12-07 11:22:40 +01:00
return $this->hasValue('root_id');
}
public function getRootId() {
2019-12-07 11:22:40 +01:00
return $this->getValue('root_id');
}
public function hasHeader() {
2019-12-07 11:22:40 +01:00
return $this->hasValue('header');
}
public function getHeader() {
2019-12-07 11:22:40 +01:00
return $this->getValue('header');
}
}