Page MenuHomePhabricator

PhabricatorPDFFragment.php
No OneTemporary

PhabricatorPDFFragment.php

<?php
abstract class PhabricatorPDFFragment
extends Phobject {
private $rope;
public function getAsBytes() {
$this->rope = new PhutilRope();
$this->writeFragment();
$rope = $this->rope;
$this->rope = null;
return $rope->getAsString();
}
public function hasRefTableEntry() {
return false;
}
abstract protected function writeFragment();
final protected function writeLine($pattern) {
$pattern = $pattern."\n";
$argv = func_get_args();
$argv[0] = $pattern;
$line = call_user_func_array('sprintf', $argv);
$this->rope->append($line);
return $this;
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Jul 31, 11:29 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16400813
Default Alt Text
PhabricatorPDFFragment.php (628 B)

Event Timeline