示例#1
0
文件: URI.php 项目: chaimvaid/linet3
 /**
  * Object constructor
  *
  * @param Zend_Pdf_Element_Dictionary $dictionary
  * @param SplObjectStorage            $processedActions  list of already processed action dictionaries, used to avoid cyclic references
  * @throws Zend_Pdf_Exception
  */
 public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $processedActions)
 {
     parent::__construct($dictionary, $processedActions);
     if ($dictionary->URI === null) {
         //require_once 'Zend/Pdf/Exception.php';
         throw new Zend_Pdf_Exception('URI action dictionary entry is required');
     }
 }
示例#2
0
 /**
  * Object constructor
  *
  * @param Zend_Pdf_Element_Dictionary $dictionary
  * @param SplObjectStorage            $processedActions  list of already processed action dictionaries, used to avoid cyclic references
  */
 public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $processedActions)
 {
     parent::__construct($dictionary, $processedActions);
     $this->_destination = Zend_Pdf_Destination::load($dictionary->D);
 }