Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
Zend_Pdf_Element_Stream Class Reference
Inheritance diagram for Zend_Pdf_Element_Stream:
Zend_Pdf_Element

Public Member Functions

 __construct ($val)
 
 getType ()
 
 length ()
 
 clear ()
 
 append ($val)
 
 makeClone (Zend_Pdf_ElementFactory $factory, array &$processed, $mode)
 
 toString ($factory=null)
 
- Public Member Functions inherited from Zend_Pdf_Element
 getType ()
 
 toString ($factory=null)
 
 makeClone (Zend_Pdf_ElementFactory $factory, array &$processed, $mode)
 
 setParentObject (Zend_Pdf_Element_Object $parent)
 
 getParentObject ()
 
 touch ()
 
 cleanUp ()
 
 toPhp ()
 

Data Fields

 $value
 
- Data Fields inherited from Zend_Pdf_Element
const TYPE_BOOL = 1
 
const TYPE_NUMERIC = 2
 
const TYPE_STRING = 3
 
const TYPE_NAME = 4
 
const TYPE_ARRAY = 5
 
const TYPE_DICTIONARY = 6
 
const TYPE_STREAM = 7
 
const TYPE_NULL = 11
 
const CLONE_MODE_SKIP_PAGES = 1
 
const CLONE_MODE_FORCE_CLONING = 2
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Pdf_Element
static phpToPdf ($input)
 

Detailed Description

Definition at line 38 of file Stream.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $val)

Object constructor

Parameters
string$val

Definition at line 53 of file Stream.php.

54  {
55  $this->value = Zend_Pdf::getMemoryManager()->create($val);
56  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
static getMemoryManager()
Definition: Pdf.php:236

Member Function Documentation

◆ append()

append (   $val)

Append value to a stream

Parameters
mixed$val

Definition at line 99 of file Stream.php.

100  {
101  $ref = &$this->value->getRef();
102  $ref .= (string)$val;
103  $this->value->touch();
104  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9

◆ clear()

clear ( )

Clear stream

Definition at line 86 of file Stream.php.

87  {
88  $ref = &$this->value->getRef();
89  $ref = '';
90  $this->value->touch();
91  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9

◆ getType()

getType ( )

Return type of the element.

Returns
integer

Definition at line 64 of file Stream.php.

65  {
67  }
const TYPE_STREAM
Definition: Element.php:38

◆ length()

length ( )

Stream length. (Method is used to avoid string copying, which may occurs in some cases)

Returns
integer

Definition at line 76 of file Stream.php.

77  {
78  return strlen($this->value->getRef());
79  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9

◆ makeClone()

makeClone ( Zend_Pdf_ElementFactory  $factory,
array &  $processed,
  $mode 
)

Detach PDF object from the factory (if applicable), clone it and attach to new factory.

Parameters
Zend_Pdf_ElementFactory$factoryThe factory to attach
array&$processedList of already processed indirect objects, used to avoid objects duplication
integer$modeCloning mode (defines filter for objects cloning)
Returns
Zend_Pdf_Element

Definition at line 115 of file Stream.php.

116  {
117  return new self($this->value->getRef());
118  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9

◆ toString()

toString (   $factory = null)

Return object as string

Parameters
Zend_Pdf_Factory$factory
Returns
string

Definition at line 126 of file Stream.php.

127  {
128  return "stream\n" . $this->value->getRef() . "\nendstream";
129  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9

Field Documentation

◆ $value

Definition at line 45 of file Stream.php.


The documentation for this class was generated from the following file: