ApiGen\Configuration\Configuration::getZipFileName PHP Метод

getZipFileName() публичный метод

public getZipFileName ( )
    public function getZipFileName()
    {
        $webalizedTitle = Strings::webalize($this->getOption('title'), null, false);
        return ($webalizedTitle ? $webalizedTitle . '-' : '') . 'API-documentation.zip';
    }

Usage Example

Пример #1
0
 /**
  * @return array
  */
 private function getParameters()
 {
     if ($this->parameters === null) {
         $parameters = ['annotationGroups' => $this->configuration->getOption(CO::ANNOTATION_GROUPS), 'namespace' => null, 'package' => null, 'class' => null, 'constant' => null, 'function' => null, 'namespaces' => array_keys($this->elementStorage->getNamespaces()), 'packages' => array_keys($this->elementStorage->getPackages()), 'classes' => array_filter($this->elementStorage->getClasses(), $this->getMainFilter()), 'interfaces' => array_filter($this->elementStorage->getInterfaces(), $this->getMainFilter()), 'traits' => array_filter($this->elementStorage->getTraits(), $this->getMainFilter()), 'exceptions' => array_filter($this->elementStorage->getExceptions(), $this->getMainFilter()), 'constants' => array_filter($this->elementStorage->getConstants(), $this->getMainFilter()), 'functions' => array_filter($this->elementStorage->getFunctions(), $this->getMainFilter()), 'elements' => $this->autocompleteElements->getElements()];
         if ($this->configuration->getOption(CO::DOWNLOAD)) {
             $parameters['archive'] = basename($this->configuration->getZipFileName());
         }
         $this->parameters = $parameters;
     }
     return $this->parameters;
 }
All Usage Examples Of ApiGen\Configuration\Configuration::getZipFileName