getDenyAccess

@param boolean $bool

@return  boolean
186566
public function denyAccess($bool = null)
	{
		if ($bool === null) {
			return $this->options['deny_access'];
		}

		return $this->options['deny_access'] = $bool;
	}
672375
public function ifTrue($bool)
    {
        if (null !== $this->apply) {
            throw new \RuntimeException('Cannot nest ifTrue or ifFalse call');
        }

        $this->apply = (true === $bool);

        return $this;
    }
578902
public function useSeconds($bool = null)
    {
        if (isset($bool)) {

            $this->option_use_seconds = (bool) $bool;
            $this->set_options['use_seconds'] = 'useSeconds';

            return $this;
        }
        else {

            return $this->option_use_seconds;
        }
    }
1001475
public function ifFalse($bool)
    {
        if (null !== $this->apply) {
            throw new \RuntimeException('Cannot nest ifTrue or ifFalse call');
        }

        $this->apply = (false === $bool);

        return $this;
    }
1255662
public function GetDeleteURL($bUseFullUrl = false)
    {
        $aParameter = array(TdbShopArticleReview::URL_PARAM_REVIEW_ID => $this->id);
        $sReportLink = TTools::GetExecuteMethodOnCurrentModuleURL('DeleteReview', $aParameter, $bUseFullUrl);

        return $sReportLink;
    }
356842
public function requireIndexes($bool = true)
    {
        if (!$this->isQueryOrScan()) {
            //TODO: exception
        }

        if ($bool) {
            $this->queryClass = Query::class;
        } else {
            $this->queryClass = Scan::class;
        }

        return $this;
    }
758155
public function getTree($maxLevel = 0, $getHidden = false)
    {
        $hash = $maxLevel . $getHidden;
        if (!isset($this->treeCache[$hash])) {
            $this->setLoadHiddenCategories($getHidden);
            $query = $this->buildQuery();
            $results = $this->repository->execute($query, Repository::RESULTS_OBJECT);
            $tree = $this->buildTree($results, $maxLevel);
            $this->treeCache[$hash] = $tree;
        }

        return $this->treeCache[$hash];
    }
811335
public function ignoreWhitespaces(bool $bool = true): Compare
    {
        $this->ignoreWhitespaces = $this->useOption('-w', $bool);
        return $this;
    }
1371925
public function returnMetrics($bool = true)
    {
        if ($bool) {
            $this->parameters['ReturnItemCollectionMetrics'] = self::RETURN_METRICS_SIZE;
        } else {
            unset($this->parameters['ReturnItemCollectionMetrics']);
        }

        return $this;
    }
155146
public function maintain(bool $isAll = false)
    {
        if ($isAll) {
            //整理所有队列文件
            $name = $this->__name;
            $list = glob($this->path . '*.lq');
            if ($list) {
                foreach ($list as $file) {
                    $filename = pathinfo($file)['filename']; //循环整理
                    if ($filename == $name) {
                        continue;
                    }
                    $this->__name = $filename;
                    $this->handleMaintain();
                }
            }
            $this->__name = $name; //最后整理当前队列
        }
        $this->handleMaintain();
    }
465703
function getMapsDirectory($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), array($this, 'stripBom'));
        }
        return $this->stripBom($this->execute(ucfirst(__FUNCTION__)));
    }
329381
public function rawData($bool = false)
	{
		if (is_bool($bool)) {
			$this->useRawData = $bool;
		} else {
			throw new RuntimeException('Invalid parameter type, expected boolean, got ' . gettype($bool));
		}
		
		return $this;
	}
493002
static function dbd($bool = true)
	{
		global $php;
		if($bool) $php->db->debug = true;
		else $php->db->debug = false;
	}
505130
public static function getDomainAuthority($url = false)
    {
        $data = static::getCols('68719476736', Helper\Url::parseHost($url));
        return (parent::noDataDefaultValue() == $data) ? $data :
            $data['pda'];
    }
898278
public static function getBacklinksTotal($url = false)
    {
        $url   = parent::getUrl($url);
        $query = urlencode("link:{$url}");

        return self::getSearchResultsTotal($query);
    }
520311
public function getDesiredUrl(?string $url = null)
  {
    if (isset($_GET['url'])) {
      $url = $_GET['url'] . (count($_GET) > 0 ? '?' : '');
      unset($_GET['url']);

      foreach ($_GET as $key => $value) {
        $url .= (ends_with($url, '?') ? '' : '&') . $key . '=' . $value;
      }
    }

    if ($url != null) return $url;
    return false;
  }
257314
public function getPid(bool $required = true) {
		if (null !== ($id = $this->getId($required))) {
			return $this->getEiType()->idToPid($id);
		}
		
		return null;
	}