Files
luos/thirdparty/html2ps_pdf/doc.anchor.class.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

59 lines
1.1 KiB
PHP

<?php
/**
* @package HTML2PS
* @subpackage Document
* Contains an Anchor class definition
*
* @see Anchor
*/
/**
* @package HTML2PS
* @subpackage Document
* Defines a position on the PDF page which could be referred by a hyperlink
*
* @see GenericFormattedBox::reflow_anchors
*/
class Anchor {
/**
* @var string Symbolic name of the location
* @access public
*/
var $name;
/**
* @var int Page number
* @access public
*/
var $page;
/**
* @var float X-coordinate on the selected page
* @access public
*/
var $x;
/**
* @var float Y-coordinate on the selected page
* @access public
*/
var $y;
/**
* Constructs a new Anchor object
*
* @param string $name symbolic name of the anchor
* @param int $page page containing this anhor
* @param int $x X-coordinate of the anchor on the selected page
* @param int $y Y-coordinate of the anchor on the selected page
*/
function Anchor($name, $page, $x, $y) {
$this->name = $name;
$this->page = $page;
$this->x = $x;
$this->y = $y;
}
}
?>