Gets whether the link should produce a shared library.

@return boolean
355629
public boolean isSharedLibrary() {
    final String value = this.outputType.getValue();
    // FREEHEP
    return value.equals("shared") || value.equals("plugin") || value.equals("jni");
  }
775601
public function hasLink()
    {
        return isset($this->attrs['url'])
            && trim($this->attrs['url'])
            && $this->attrs['url'] !== '#'
            && $this->attrs['url'] !== 'http://';
    }
596685
public function hasChildren()
    {
        if ($this->resources === null) {
            $this->initializeResouces();
        }

        return current($this->resources) instanceof \Arbit\VCSWrapper\Directory;
    }
223346
public function hasPlatform()
    {
        if (null === $this->parentTable) {
            return false;
        }

        return $this->parentTable->getPlatform() ? true : false;
    }
999562
protected function isShared($abstract)
    {
        $abstract = $this->normalize($abstract);
        //存在实列集合中， 肯定是共享的
        if (isset($this->instances[$abstract])) {
            return true;
        }
        if (! isset($this->bindings[$abstract]['shared'])) {
            return false;
        }
        return $this->bindings[$abstract]['shared'] === true;
    }
1187324
public function isAvailable(): bool
    {
        if (!file_exists("{$this->projectRootDir}/config/bundles.php")) {
            return false;
        }
        $sourcePath = "{$this->packageInstallDir}/.installer/%s/bundles.php";
        foreach ($this->projectType->getProjectDirs() as $projectDir) {
            $bundleFile = sprintf($sourcePath, $projectDir);
            if (is_file($bundleFile)) {
                return true;
            }
        }

        return false;
    }
1215993
public function isSection()
    {
        $is_curr = $this->isCurrent();
        $curr = Director::get_current_page();

        return $is_curr || (
            ($curr instanceof CatalogueCategory || $curr instanceof CatalogueProduct) && in_array($this->owner->ID, $curr->getAncestors()->column())
        );
    }
99018
protected function getSharedDir()
    {
        $shared = $this->app->getSourceDir() . '/' . $this->config->get('local.shared_dir');
        if (!$this->app->isSingle()) {
            $shared .= '/' . preg_replace('/[^a-z0-9\-_]+/i', '-', $this->app->getName());
        }
        $this->fsHelper->mkdir($shared);

        return $shared;
    }
437371
public function isUnoconvReady() {
		$cfgUnoconv = $this->_getUnoconvConfig();
		if ($cfgUnoconv === false) {
			return false;
		}

		if (!file_exists($cfgUnoconv['binaries'])) {
			return false;
		}

		return true;
	}
232774
public function canShowAnything()
    {
        if (! $this->isCustomerSubscriber() || ! $this->helper->isEnabled($this->getCustomer()->getWebsiteId())) {
            return false;
        }

        $showPreferences = $this->getCanShowPreferences();
        $books = $this->getAdditionalBooksToShow();
        $fields = $this->getDataFieldsToShow();
        if ($books || $fields || $showPreferences) {
            if (! empty($books) || ! empty($fields) || $showPreferences) {
                return true;
            }
        }

        return false;
    }
991573
final public static function checkLibrariesRequired()
    {
        $base =  __DIR__."/../../";
        foreach (self::$libs as $lib => $val) {
            if (!is_dir($base.$lib) || !self::checkIsReadable($base.$lib) ||
                !self::checkIsWritable($base.$lib) || self::isDirEmpty($base.$lib)) {
                return (json_encode(array("code" => 500, "results" => "NOK", "libsr" => $lib, "msg" => $val)));
            }
        }

        foreach (self::$php_extensions as $lib => $val) {
            if (!extension_loaded($lib)) {
                return (json_encode(array("code" => 500, "results" => "NOK", "libsr" => $lib, "msg" => $val)));
            }
        }

        return (json_encode(array("code" => 200, "results" => "OK")));
    }
846212
public static function isPhpCliMode()
    {
        if (is_bool(self::$isCliMode)) {
            return self::$isCliMode;
        }

        if(PHP_SAPI == 'cli'){
            return true;
        }
        
        if(self::isPhpCgiType() && (!isset($_SERVER['REMOTE_ADDR']) || empty($_SERVER['REMOTE_ADDR']))){
            return true;
        }
        
        return false;
    }
369092
public function hasDependencies()
    {
        foreach ($this->dependencies as $key) {
            if (isset($this->config[$key]) && $this->config[$key]) {
                return true;
            }
        }

        return false;
    }
1074895
final public function hasUTF()
    {
        $verParts = explode('.', $this->getVersion());
        return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
    }
580257
public function LinkingMode()
    {
        if ($this->isCurrent()) {
            return $this->config()->get('linking_mode_current');
        } elseif ($this->isSection()) {
            return $this->config()->get('linking_mode_section');
        } else {
            return $this->config()->get('linking_mode_default');
        }
    }
866644
public static function isSymlinkSupported()
    {
        if (null === self::$symlinkSupported) {
            // http://php.net/manual/en/function.symlink.php
            // Symlinks are only supported on Windows Vista, Server 2008 or
            // greater on PHP 5.3+
            if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
                self::$symlinkSupported = PHP_WINDOWS_VERSION_MAJOR >= 6;
            } else {
                self::$symlinkSupported = true;
            }
        }

        return self::$symlinkSupported;
    }
1292628
public function hasNamespaceFactory() {
		if ($this->_namespacesFactory !== null) {
			return true;
		}
		
		if ($this instanceof LocatorAwareInterface && $this->hasLocator()
			&& $this->getLocator()->has($this->getSessionNamespaceFactoryServiceId())) {
			return true;
		}
		
		return false;
	}