Export as string.

@param bool $verbose Add additional text output.

@return string
11489
public function export(bool $verbose = false): string {
        openssl_csr_export($this->getHandle(), $output, !$verbose);
        return $output;
    }
694440
public function exportValue(&$submitted, $assoc = false) {

        $value = '';
        $filetypeselement = null;

        foreach ($this->_elements as $key => $element) {
            if ($element->_attributes['name'] === 'filetypes') {
                $filetypeselement = $this->_elements[$key];
            }
        }

        if ($filetypeselement) {
            $formval = $filetypeselement->exportValue($submitted[$this->getName()], false);
            if ($formval) {
                $value = $this->util->normalize_file_types($formval);
                if ($value === ['*'] && !$this->allowall) {
                    $value = [];
                }
                $value = implode(',', $value);
            }
        }

        return $this->_prepareValue($value, $assoc);
    }
778080
private String createTempFile(final boolean verbose) throws IOException {
        final File tempFile = File.createTempFile("tempMetadata", ".xml");

        if (!verbose) {
            tempFile.deleteOnExit();
        }

        return tempFile.getAbsolutePath();
    }
1029717
def to_string(self, verbose=0, title=None, **kwargs):
        
        from pprint import pformat
        s = pformat(self, **kwargs)
        if title is not None:
            return "\n".join([marquee(title, mark="="), s])
        return s
840161
protected function getBufferedOutput(OutputInterface $output, $verbosity = null)
    {
        $buffer = new BufferedOutput();
        $buffer->setDecorated($output->isDecorated());
        $buffer->setFormatter($output->getFormatter());
        if ($verbosity === null) {
            $buffer->setVerbosity($output->getVerbosity());
        } else {
            $buffer->setVerbosity($verbosity);
        }

        return $buffer;
    }
146142
public String verboseToString() {
        String out = resultToString(getResult());
        switch (result) {
        case BACK:
        case FAIL:
            out = out + vertex.throwableToString();
            break;
        case FOLLOW:
        case SUCCEED:
            out = out + vertex.moreToString();
            break;
        case POSSIBLE:
            break;
        default:
            break;
        }
        out = out + "Certificate contains:\n" + vertex.certToString();
        return out;
    }
944580
public function asText(bool $extended = false): string {
        $event = new OutputOpEvent($this, ['extended' => $extended]);
        $this->fireOperationEvent(OutputOpEvent::AS_TEXT_EVENT, $event);
        return $event->getResults();
    }
439187
function generateTitle($format='%label%: %name% %extra%')
    {
        $translate = [
            '%label%' => $this->isInterface() ? 'Interface' : 'Class',
            '%name%' => substr_count($this->getName(), '\\') == 1 ? substr($this->getName(), 1) : $this->getName(),
            '%extra%' => ''
        ];

        if( strpos($format, '%label%') === false ) {
            if( $this->isInterface() )
                $translate['%extra%'] = '(interface)';
            elseif( $this->isAbstract() )
                $translate['%extra%'] = '(abstract)';
        } else {
            $translate['%extra%'] = $this->isAbstract() && !$this->isInterface() ? '(abstract)' : '';
        }

        return trim(strtr($format, $translate));
    }
455798
public function verbose($verbose = null)
    {
        if ($verbose !== null) {
            $this->details = (bool) $verbose;
        }

        return $this->details;
    }
958343
public function date($date, $verbosity = self::SHORT)
    {
        $dateTime = $this->toDateTime($date);
        $dateFormat = $this->getDateFormat(self::DATE, $verbosity, $dateTime);
        return $dateTime->format($dateFormat);
    }
192760
public String serialize(boolean verbose) throws IOException {
        Serializer serializer;
        StringWriter writer = new StringWriter();

        if (verbose)
        {
            serializer = new SerializerVerbose(writer);
        }
        else
        {
            serializer = new Serializer(writer);
        }
        serializer.writeObject(this).flush();

        return writer.toString();
    }
1290885
public function toString($ignoreAltitude = false)
    {
        return sprintf(
            '%s,%s',
            $this->getSouthWest()->toString($ignoreAltitude),
            $this->getNorthEast()->toString($ignoreAltitude)
        );
    }
144837
private function initEventDispatcher(
        OutputInterface $output,
        string $formatterName,
        bool $verbose
    ): EventDispatcherInterface {
        if ('dot' === $formatterName) {
            $formatter = new DotFormatter($output);
        } elseif ('pretty' === $formatterName) {
            $formatter = new PrettyFormatter($output, $verbose);
        } elseif ('simple' === $formatterName) {
            $formatter = new SimpleFormatter();
        } else {
            throw new \RuntimeException(
                sprintf('Format "%s" is unknown. Available formats: %s.', $formatterName, implode(', ', $this->formats))
            );
        }

        $eventDispatcher = new EventDispatcher();
        $eventDispatcher->addSubscriber($formatter);

        return $eventDispatcher;
    }
1290397
public function setVerbosity($verbosity)
    {
        $this->output->setVerbosity($verbosity);
        $this->errorOutput->setVerbosity($verbosity);
    }
675236
function toString( $objectAttribute )
    {
        $mediaFile = $objectAttribute->content();

        if ( is_object( $mediaFile ) )
        {
            return implode( '|', array( $mediaFile->attribute( 'filepath' ), $mediaFile->attribute( 'original_filename' ) ) );
        }
        else
            return '';
    }
610544
public static function blocked($verbose = false)
    {
        $blocked = self::isRefererOnBlocklist();
        if ($verbose === true) {
            return self::$reason;
        }

        return $blocked;
    }
1161210
public function exportFilesSamples(& $form) {
		$result = '';
		$formats = \Object\Content\ImportFormats::getStatic();
		$temp = [];
		foreach ($formats as $k => $v) {
			$temp[] = \HTML::a(['href' => '?export_file_with_format=' . $k, 'value' => 'Import.' . $v['extension']]);
		}
		$result.= i18n(null, 'File Headers') . ': ' . implode(' | ', $temp);
		$result.= '<hr/>';
		return $result;
	}